Home > Backend Development > PHP Tutorial > PHP program development example learning form to obtain the value of the text box_PHP tutorial

PHP program development example learning form to obtain the value of the text box_PHP tutorial

WBOY
Release: 2016-07-21 15:25:50
Original
864 people have browsed it


Usage of text box:

The input types include text, password and other types. HTML5 has added a lot of new input types. If you want to learn this kind of knowledge, you can have a good understanding of it, because the more detailed it is, the easier it is to use. .
 
Look at the functions of this example

After filling in the form and submitting it:


Implementation code:

Copy code The code is as follows:








< ;td align="center">Password:







Administrator:

< ?php
if(!isset($_POST['submit']))
return ;
if($_POST['submit']=='submit'){
$username = $ _POST['username'];
$password = $_POST['password'];
}
echo <<






Administrator:$username
Password: $password

EOT;
?>

Use isset() function to determine whether $_POST['submit'] has been Settings

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/324030.htmlTechArticleform name="form" method="post" action="login.php"/form Usage of text box : input type="text" name="username" / The input type includes text, password and other types. HTML5 has added a lot...
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template