Toggle navigation
Genres
Frontend (2)
JavaScript (6)
Database (2)
Linux Server (3)
Web Apps (4)
Misc (4)
Search
List
New Tutorials
Last Modified Tutorials
</>
Code examples
code
smiko
frontend
html
examples
forms
03text_disabled_readonly_php.html
03text_disabled_readonly_php.html
<!DOCTYPE HTML> <html lang="hr"> <head> <meta charset="UTF-8"> <title>Readonly and disabled inpute text fields</title> </head> <body> Submit the form and see that <br><b>var_readonly</b> is passed to the PHP script but <br><b>var_ disabled</b> is not passed. <br> <br> <form action="03script.php" method="POST" enctype="application/x-www-form-urlencoded"> <label for="f1">var_readonly:</label> <input type="text" id="f1" name="var_readonly" value="val1" size="5" readonly> <br> <label for="f1">var_disabled:</label> <input type="text" id="f1" name="var_disabled" value="val2" size="8" disabled> <br><br> <input type="submit" value="Send"> </form> </body> </html>
Reload page
Preview
W3C validation
Edit Code