Home > Web Front-end > HTML Tutorial > HTML form markup tutorial (1):_HTML/Xhtml_Web page production

HTML form markup tutorial (1):_HTML/Xhtml_Web page production

WBOY
Release: 2016-05-16 16:45:48
Original
1703 people have browsed it

Form is a main external form to implement dynamic web pages. Forms and form fields do not have the ability to be typed, and the production of form web pages must ultimately be organized by tables. HTML forms are an important means for interaction between HTML pages and browsers. Forms can be used to collect relevant information submitted by clients.
You often encounter forms when browsing websites, which are an important part of the website's interactive functionality. No matter what form of language the website uses to realize the interactive functions of the website, such as ASP, PHP, JSP, forms have become their unified external form.
The main function of the form is to collect information, specifically the visitor’s information. For example, if you want to apply for an e-mail online, you must fill in the form page provided by the website as required. The main content is your name, age, contact information and other personal information. For another example, if you want to speak on a forum, you need to apply for qualifications before speaking, and you also need to fill out a form page.
Forms can be used for surveys, orders, searches, etc. A general form consists of two parts, one is the html source code that describes the form elements, and the other is the client-side script, or the server-side program used to process the information filled in by the user. In HTML, we can define forms and cooperate with server-side form processing programs such as CGI or ASP.
The process of form information processing is: when the submit button in the form is clicked, the information entered in the form will be uploaded to the server, and then processed by the relevant application in the server. After processing, the user The submitted information is stored in the server-side database, or relevant information is returned to the client browser.
A form is a specific area on a web page. This area is defined by a pair of
tags. This step serves several purposes. The first aspect is to limit the scope of the form. Other form objects must be inserted into the form. When you click the submit button, the content within the scope of the form is also submitted. The second aspect is to carry relevant information about the form, such as the location of the script that processes the form, the method of submitting the form, etc. This information is invisible to the viewer, but it does play a decisive role in processing the form.
basic grammar 01
02 …… 03
Grammar explanation The attributes of the
tag are as shown in the table below Properties Description name form name method Define the method for transmitting form results from the browser to the server. There are generally two methods: get and post. action Used to define the location (relative address or absolute address) of the form processing program (ASP, CGI, etc.) enctype Set the encoding method of form data target Set the display method of returned information
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template