Web Technologies
HTML Forms
SMT.M.Jeevana Sujitha
Assistant Professor
Department of Computer Science and Engineering
SRKR Engineering College, Bhimavaram, A.P. - 534204
OBJECTIVES
The Objectives of this lecture are
HTML Forms
will perform
required processing on the passed data based on defined business logic inside the application.
HTML Forms
Creating Forms
<form action=“script url” method=“get/post”> Form elements are placed here
</form>
HTML Forms
Text input controls:
HTML Forms
Single line text input control:
one line of user input such as search boxes and names.
Password input control:
HTML Forms
<input type=“password” attribute list>
Multiline text input control:
HTML Forms
<textarea rows=“5” cols=“50” name=“address”>
Enter your address here
</textarea>
Checkbox control:
Example:
HTML Forms
value=“c”checked>c <br>
<input type=“checkbox”
<input type=“checkbox” name=“subject”
name=“subject”
value=“cpp”>cpp <br>
Radio Button control:
HTML Forms
Example:
<input type=“radio”
name=“gender”
value=“male "checked>male <br>
<input type=“radio” name=“gender” value=“female”>female<br>
HTML Forms
Select box control:
provides option to list down various options in the form of drop down list, from where user can select one or more options .
<select name="branch“ multiple=“multiple”>
<option value="cse" selected>cse</option>
<option value="eee">eee</option>
</select>
HTML Forms
Button controls:
submit: used to submit a form
reset: resets the form controls to their initial values
button: used to trigger a client side script image: creates a clickable image button
THANK YOU