HTML form

How does the website interact with users? The answer is to use HTML forms. The form can transmit the data entered by the viewer to the server, so that the server-side program can process the data passed by the form.

Grammar:

Explanation:

1.: tags appear in pairs, starting with and ending with < ;/form>End.

2.action: The place where the data entered by the viewer is sent, such as a PHP page (save.php).

3.method: Data transmission method (get/post).

     

Note:

1. All form controls (text boxes, text fields, buttons, radio boxes, check boxes, etc.) must be placed Between the

tags (otherwise the information entered by the user may not be submitted to the server!).

2. Method: The difference between post/get. This part is a matter for back-end programmers to consider. Interested friends can check the wiki of this section, which has detailed introduction.

Continuing Learning
||

the summary of the book

i will lead you to travel in the season of linux

married
have a job
chinese
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!