Forms are a major external form for implementing dynamic web pages. Forms and form fields do not have the ability to layout, and the production of form web pages must ultimately be organized by tables. HTML form is an important means for HTML pages to interact with browsers. Forms can be used to collect relevant information submitted by clients. When browsing a website, you will often encounter forms, which are an important part of the website's interactive functions. No matter what language the website uses to implement the interactive functions of the website, such as ASP, PHP, and JSP, the form has become their unified external form. The main function of a form is to collect information, specifically, to collect information from viewers. For example, if you want to apply for an email address online, you must fill out the form page provided by the website as required. The main content is personal information such as name, age, and contact information. For example, if you want to speak at a forum, you need to apply for qualifications before speaking and fill out a form on a web page. Forms can be used for surveys, ordering, searching, and more. 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 coordinate them 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 information submitted by the user will either be stored in the database on the server side, or the relevant information will be returned to the client browser. A form is a specific area on a web page. This area is defined by a pair of <Form> tags. This step serves several purposes. First, limit the scope of the form. Other form objects need to be inserted into the form. When you click the Submit button, the content within the form is also submitted. Secondly, it carries relevant information about the form, such as the location of the script that processes the form, the method for submitting the form, etc. This information is not visible to the viewer, but is crucial for processing the form.
The attributes of the <Form> tag are shown in the following table | property | describe | name The name of the form method Defines the method by which the form result is transmitted from the browser to the server. There are generally two methods: get and post action Used to define the location (relative or absolute address) of the form processing program (ASP, CGI, etc.) enctype Sets the encoding method of the form data target Sets the display method of the returned information
---|
>>: How to make if judgment in js as smooth as silk
Table of contents Discover: Application of displa...
MYSQL is case sensitive Seeing the words is belie...
background: Since the company's projects seem...
Table of contents 1. Scope 2. Function return val...
Table of contents Show Me The Code Test the effec...
1. Introduction The location instruction is the c...
Problem: When using JDBC to connect to the MySQL ...
1.html part Copy code The code is as follows: <...
1. Introduction When a web project is published o...
The specific code of JavaScript date effects is f...
Virtual machines are very convenient testing soft...
Solution process: Method 1: The default kernel ve...
After being tortured by the front-end cross-domai...
1. Use data from table A to update the content of...
Problem background: When using docker to deploy t...