Php Tutorial-php Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.