The length of an html form is calculated based on the number of characters, whether it is a Chinese character or a letter, but the database is calculated by byte. The number of Chinese characters occupies 1 of 2 letters, in this way, the length of
[ASP. NET Web API tutorial] 5.2 send HTML form data: URL-encoded form data, api5.2
Note: This article is part of the [ASP. NET Web API series tutorial]. If this is the first time you read this series of tutorials, read the previous content first.5.2
HTML form length is calculated by the number of characters, whether it is Chinese characters or letters, but the database is also in bytes, the Chinese characters accounted for 2 letters accounted for 1, so it is easy to write the length of the
Javascript Form Verification length, javascript form
JavaScript can be used to verify the input data in the HTML form before the data is sent to the server.
What method should we use to remind users? You do not want to use the alert () Prompt
Contents of the formOnce the form is created, you can place the control in the form to accept the user's input. These controls are typically used in conjunction with ...... label pairs, or they can be used outside the form to create a user interface.
This article mainly introduces table, form label and form submission method.Directory1. Tags: Define table layouts in HTML.2. Tags: used to create HTML forms.3. Form submission: Describes the Get, post method.1. Label 1.1 descriptionDefines the
Form) is used to collect information from user site visitors, and then submit the information to the server for processing. The form can contain various controls that allow users to interact, such as text boxes, list boxes, check boxes, and
HTML Form Enctype
Http://www.w3.org/TR/html401/interact/forms.html#h-17.13.1%E2%80%8D
enctype=
Content-type [CI]
This
attribute specifies the content type used to submit the form to the server if
Form attributes
Action
Define a URL. Send data to this URL when you click Submit.
4
5
Data
For automatic data insertion.
5
Replace
Define what is done when a form is submitted.
5
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.