How to set input read-only by php
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: