Get the App
SLTechnology News&Howtos  ›  Development  › 

How to set input read-only by php

Shulou Source: shulou.com Published: 2022-06-02 00:29:33 10月03日 Update

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:

Tags: Framework content Agility effects methods articles Learning help input restrictions different good powerful large Fast secure Professional Code cursor function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Shulou Technology MySQL Shulou Information Xiaomi