PHP4 practical application experience 1. Form is the fastest and easiest way to add interaction functions to your site. The form allows you to ask if your customers like your product, and allows casual access to your site. The form is the fastest and easiest way to add interaction functions to your site. The form allows you to ask your customers if they like your product, leave comments to visitors who inadvertently visit your site, or ask beautiful girls for their phone numbers. PHP can greatly simplify data processing based on Web form submission-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 is your name? </Font>
</Td>
<Td align = "left">
<Input type = "text" name = "name" size = "10">
</Td>
</Tr>
<Tr>
<Td colspan = "2" align = "center">
<Input type = "submit">
</Td>
</Tr>
</Table>
</Form>
</Center>
</Body>
</Html>
--------------------------------------------------------------------------------
The <FORM> tag is the most noteworthy for the entire page.
--------------------------------------------------------------------------------
<Form method = "GET" action = "login. php">
...
</Form>
--------------------------------------------------------------------------------
You may already know that the <FORM> tag's ACTION attribute value explicitly specifies the name of the server-side script that processes the information entered in the FORM-here it is "login. php ", and the METHOD attribute describes how information is transmitted.
Bytes. The form allows you to ask your customers if they like your product, so that they can access your site without any permission...