Form form Labels
It is a region, not a specific element, it is also the existence of a container.
form fields primarily allow users to enter content in form fields, such as text boxes, drop-down lists, radio boxes, checkboxes, and so on.
<!DOCTYPE HTML><HTML><Head><MetaCharSet= "Utf-8"></Head><Body><H1>User Login</H1><formname= "Input"Action= "action.php"Method= "Get">Account Number:<inputtype= "text"name= "User"><BR><BR>Password:<inputtype= "Password"name= "pwd"><BR><BR>Gender:<inputtype= "Radio"name= "Sex"value= "Man">male<inputtype= "Radio"name= "Sex"value= "Woman">female<BR><BR>Hobbies:<inputtype= "checkbox"name= "Hobby"value= "Basketball">Basketball<inputtype= "checkbox"name= "Hobby"value= "Football">Football<inputtype= "checkbox"name= "Hobby"value= "Badminton">Badminton<BR><BR> <inputtype= "Submit"value= "Submit"> </form></Body></HTML>
A set of forms will have the above content, such as above, let the user Enter account number, password, gender, interest and so on.
The Type property of the input label is used within the form to define the types of inputs.
Then when the user clicks the Submit button, the form submits all the contents of the form to another page.
So how do you know which page to submit the form to, and note that the page is written in the form's properties.
<name= "Input" action= "html_form_action.php" method = "Get" >
That's it, action this property is written by the user click on the Submit button, the form of the data submitted to the page, this PHP file will usually be sent over the form of data processing.
With this form content, we started to learn PHP and how to send the contents of this form to our MySQL.
PHP Full stack Development (iv): HTML Learning (3. Form form)