the text boxes, or make selections from the radio buttons, check boxes, and drop down lists. The values they enter or select are passed with the name of the corresponding form element to the Web server. . .
Attributes frequently used with <form> tag The important attributes used with the <form> tag are method and action attributes. Method The method attribute of the form tag is used to identify how the form element names and values will be sent to the server. The get method will append the names of the form elements and their values to the URL. The post method will send the names and values of the form elements as packets.
Action The action attribute identifies the server side program or script that will process the form. The action will be the name of a Common Gateway Interface (CGI) program written in programming languages like Perl, JavaScript, PHP or Active Server Pages (ASP). (This will be discussed with JavaScript in this book). General Format of <form> tag <Form method=get/post action= “ ”> D:\ \ HTML - Form and Co..
File Edit View Favorites Tools Help Students Data Entry Form Student Name: Text Boxes Radio Buttons Check boxes Select box Text Area Push buttons Gender: Email: Boy Girl Subjects: Tamil Telugu English Physics Economics City / Town: Madurai Comments: Clear Submit Figure . HTML Form Controls Chapter Pages Form elements </Form> . . Form Controls: In HTML, there are different types of form controls are used to collect data.
They are Text box, Password, Checkbox, Radio buttons, Text area, Select box, Submit and Reset Button. . . .
<Input> Tag Most of the form controls are created by using <input> tag. The <input> is an empty tag used to create different form elements or controls such as text box, radio buttons so on. Attributes of <input> tag: Type: This attribute is used define the type of control to be created by <input> tag. The values of type attribute is listed below: Table: .
Value of type attribute Description Text Create a Text Box. The element used to