Want to know more about us and our multimedia, animation & web design courses, feel free to Contact Us. We would love to hear from you.
HTML Forms are required for, when you intend to gather some information from the website visitor. For example, throughout customer registration you want to collect info such as name, email address, mobile, and so on. A Form will certainly take input from the website visitor and it will publish it to a back-end application such as CGI, ASP script or PHP script etc. The back-end application will certainly perform required handling on the passed data based on specified business logic inside the application.
There are various Form elements offered that are listed below:
input> element is the most important FORM element. The <
input> element can be displayed in several ways, depending on the type attribute.
defines a button for submitting the form data to a form-handler. The form-handler is typically a server page with a script for processing input data. The form-handler is specified in the form's action attribute: When you click on submit button the button will send data to action script. The action attribute sends user form data to server page when visitor clicked on button
The default method when submitting form data is GET. However, when GET is used, the submitted form data will be visible in the page address field: "
Notes on GET:
Always use POST if the form data contains sensitive or personal information. The POST method does not display the submitted form data in the page address field.
Notes on POST:
<select> element defines a drop-down list. The
<option> elements defines an option that can be selected. By default, the first item in the drop-down list is selected.
<textarea> element defines a multi-line input field (a text area):
|Monday To Friday||8:00 Am To 8:00Pm|
|Saturday & Sunday||8:00 Am To 5:00Pm|