

HTML Form – Option Group The is used to group related options in a drop-down list.

A drop-down list allows multiple selections. HTML Form – Drop Down List Drop-down lists are a good method to deliver a large range of choices without taking a lot of screen space. Allows the user to browse to a file on their machine for submission to the web site.

A hidden field often store a default value, or can have its value changed by a JavaScript. Define a hidden field (not visible to a user). a series of controls from which the user can select one choice.

Define a submit button a button that sends the form data to the action. Define a password field (characters are masked) Attribute Define a single-line text field that a user can enter text into Attribute HTML Form - Input Used to select user information Not require a closing tag for HTML An input field can vary in many ways, depending on the type attribute the tag requires a name, the name of the tag allows the programmer to work with the data from the control Attribute Method GET/POST GET Useful for form submissions where a user want to bookmark the result Display the form contents from the user Have a limit to how much data you can place in a URL (varies between browsers) Never use the "get" method to pass sensitive information! POST More robust and secure than GET Hide the form contents from the user Form submissions with the "post" method cannot be bookmarked Not have size limitations Web Programming – HTML Form and Here comes your footer Introduction to PHP Specifies where to send the formdata when a form is submitted Specifies the HTTP method to use when sending form-data Web Programming – HTML Form and Here comes your footer Introduction to PHPĭraws a box around the related elements defines a caption for the element Need web scripting server side for data processing Example : PHP, ASP, JSP, etc HTML Form Media for user to input data Allow the user to send data to web sites Example : registration, send messages, post comment, post video, etc. PEMROGRAMAN WEB 05 – HTML Form and Introduction to PHP
