Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to set input read-only by php

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you how php sets input read-only, the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor to take you to study and learn "php how to set input read-only" this article.

Php sets input read-only methods: 1, open the corresponding code file; 2, through the "" way to set input read-only.

This article operating environment: Windows7 system, PHP7.1 version, DELL G3 computer

How does php set input read-only?

Explain the input property in PHP in detail (hide the read-only limit)

Hide

Read-only

Failure

Limit

The ENTER key moves the cursor to the next input box

There are two ways to achieve the read-only effect of input: disabled and readonly.

Naturally, both effects can only be read but not edited, but the two are very different.

Disabled states that the input is invalid and that its value will not be passed to any programs, such as asp, PHP, and so on.

Readonly simply cannot be edited and does not affect the transfer of its value.

Disabled uses:

Readonly uses:

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report