Here is omitted part of the HTML tutorial, advice not to understand friends, directly view the HTML tutorial. This is just about the form.
A form is a set of domains used to collect information about site visitors. The form collects information from the user and submits the information to the server for processing. A form can contain various controls that allow users to interact, such as text boxes, list boxes, check boxes, and radio buttons. A site visitor forms a form by entering text, clicking a radio button or check box, and selecting an option from the Drop-down list. After filling out the form, the site visitor sends the data that is entered, and the data is processed in a variety of different ways, depending on the form handler that is set up. The basic syntax format is as follows:
<form name="表单的名称" method="get | post" action="URL">
......
</form>
The form tag has the following properties
Property |
Meaning |
Method |
Specifies the method for transferring the form to the server, and the value can be: 1. Post: Embed the form data in an HTTP request. 2, get: Attach the form data to the URL that requests the page. Note: To send a long form using the Get method, the URL should be limited to 8,192 characters in length. If the number of 擗 sent is too large, the data will be truncated, causing an unexpected or failed result. Also, do not use the Get method when sending a username and password, credit card number, or other confidential information, instead of using the Post method. |
ACTION |
Specifies the URL address of a server-side program or Dynamic Web page that will receive form data. |
OnSubmit |
Specifies the event handler to invoke when submitting the form. |
OnReset |
Specifies the event handler that is invoked when the form is reset. |
TARGET |
Specifies a target window with the following values: 1, _blank: Open the target document in the unnamed new window. 2, _parent: Open the target document in the parent window of the window that displays the current document. 3, _self: Open the target document in the window used to submit the form. 4, _top: Open the target document in the current window, make sure the target document occupies the entire window. |
NAME |
Specifies the name of the form to identify the form. After you name a form, you can use a scripting language, such as VBScript or JScript, to habitually or control a single. |
You can create multiple forms on a Web page, and each form can contain a variety of controls, such as radio buttons, check boxes, and text boxes. However, the form cannot be nested.
See the full set of ASP Getting started tutorials