Professional Documents
Culture Documents
<html>
<body>
<h2>Checkboxes</h2>
</form>
</body>
</html>
Submit button
<html>
<body>
<h2>HTML Forms</h2>
</form>
<p>If you click the "Submit" button, the form-data will be sent to a page called "/serversidescript".</p>
</body>
</html>
Attributes of form element
action
− Specifies the location of server side script where the form values will
be sent
Like servlet program which connects with database and store the reeceived
values into the related tables for using lates
Method
− Get
Passed values visible, limited amount of information can be passed
− Post
Not visible, large amount of information
Target
− Specify where to display the received response after submitting the
form
<select> element: Drop down
list
<html>
<body>
<form action="/serverProgram">
<option value="PhD">Doctorate</option>
</select>
</form>
</body>
</html>
<select > element attributes
Size
− To specify number of visible values
Multiple
− To allow selection of multiple values