PHP Full stack Development (iv): HTML Learning (3. Form form)

Source: Internet
Author: User
Tags learn php

Form form Labels

It is a region, not a specific element, it is also the existence of a container.

form fields primarily allow users to enter content in form fields, such as text boxes, drop-down lists, radio boxes, checkboxes, and so on.

<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"></Head><Body><H1>User Login</H1><formname= "Input"Action= "action.php"Method= "Get">Account Number:<inputtype= "text"name= "User"><BR><BR>Password:<inputtype= "Password"name= "pwd"><BR><BR>Gender:<inputtype= "Radio"name= "Sex"value= "Man">male<inputtype= "Radio"name= "Sex"value= "Woman">female<BR><BR>Hobbies:<inputtype= "checkbox"name= "Hobby"value= "Basketball">Basketball<inputtype= "checkbox"name= "Hobby"value= "Football">Football<inputtype= "checkbox"name= "Hobby"value= "Badminton">Badminton<BR><BR>       <inputtype= "Submit"value= "Submit">       </form></Body></HTML>

A set of forms will have the above content, such as above, let the user Enter account number, password, gender, interest and so on.

The Type property of the input label is used within the form to define the types of inputs.

Then when the user clicks the Submit button, the form submits all the contents of the form to another page.

So how do you know which page to submit the form to, and note that the page is written in the form's properties.

<name= "Input"  action= "html_form_action.php"  method = "Get" >

That's it, action this property is written by the user click on the Submit button, the form of the data submitted to the page, this PHP file will usually be sent over the form of data processing.

With this form content, we started to learn PHP and how to send the contents of this form to our MySQL.

PHP Full stack Development (iv): HTML Learning (3. Form form)

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.