Page 303 - DCAP109_GRAPHIC_TOOLS
P. 303
Graphic Tools
Notes Introduction
Web forms are used to collect information and feedback from users. The web page contains
special boxes called “fields” that collect data. The fields can be a text box, check box, radio button
or drop down menu. The form contains a Submit button that calls the script to process the
information entered, and a Reset button to return the form to its default state and erase all
information entered.
Figure 13.1: A Web Form
Source: http://files.sawmac.com/dw8/tutorials/DWForms/signup.html
Forms also serve as major tools for web developers because they can be altered on-the-fly; it’s
possible, for example, for a selection in one drop-down list to determine the contents of another.
13.1 Forms
HTML forms are interactive. That is it takes up values from the user and gives the user a
response in return after processing his request. We come across web forms every day. For
example, filling up a sign up form to create an email, survey form, feedback form, etc.
13.1.1 How HTML Forms Work?
HTML forms are used to pass data to a server. It can contain input elements like text fields,
checkboxes, radio-buttons, submit buttons and more. The <form> tag tells the browser where
the form starts and ends. You can add all kinds of HTML tags between the <form> and </form>
tags.
Syntax:
<form>
input elements
.</form>
296 LOVELY PROFESSIONAL UNIVERSITY