Author: Sun Sports
Forms are the fastest and easiest way to add interactive functionality to your site. Forms allow you to ask your customers if they like your product, let casual visitors to your site leave a review, or ask pretty girls for their phone numbers. PHP can greatly simplify data processing based on web form submissions - as shown in our first example below:
------------------------- -------------------------------------------------- -----
< html>
< head>
< basefont face="宋体">
< /head>
< body>
< center>
< form method="GET " action="login.php">
< table cellspacing="5" cellpadding="5" border="0">
< tr>
< td>
< font size="-1 ">What's your name?< /font>
< /td>
< td align="left">
< input type="text" name="name" size="10"
< /td>
< td>
< /tr>
< /table>
< /form>
< /center>
< /body>
< /html>
---------- -------------------------------------------------- -------------------
The most noteworthy thing about the entire page is the < FORM> tag
---------------- -------------------------------------------------- --------------
< form method="GET" action="login.php">
...
< /form>
------- -------------------------------------------------- -----------------------
You may already know that the ACTION attribute value of the < FORM> tag clearly specifies the method that will process the information entered in the form. The server-side script name - in this case "login.php", and the METHOD attribute describes how the information will be sent.
The above introduces PES 8 International Edition PHP4 practical application experience part 1, including the content of PES 8 International Edition. I hope it will be helpful to friends who are interested in PHP tutorials.