One of the HTML learning notes: Form control __html

Source: Internet
Author: User

First, the table cell element <form></form>

Primary properties

1 Action: The attribute value is the URL, which stipulates that when submitting the form, it should be thought where to submit the data, when the time is empty, the current page operation is indicated;

2 Method: Form data submission, which specifies the way to submit the form data to the page specified by the action attribute;

Including post and get two, corresponding to PHP $_post and $_get two functions

The difference between post and get is that the amount of get data is less than 1024KB, and the form submission displays the value of the form data field in the Address field, and the post is not limited by the amount of data, and the form field data is not displayed in the address bar, typically in development

For post-pass methods, it is divided into single value and multivalued delivery, as follows:

Single-Value delivery:

Multi-value Pass: An array that is set by name is passed the value

 

3) Enctype: Form data encoding method;

4) Name: Form name

Two, form controls

1.<input>, for recording user information, main properties include: 1 type: Specify different input types, create different input fields, 2 value: Control values; 3) Name: control names

2.<label></label> text and controls together, click the text and click the control consistently

3.<select></select>: Create a choice box, use <option></option> create each of these options

4.<TEXTAREA></TEXTAREA>: An input control that creates multiple lines of text


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.