[back]

The opening FORM tag does a couple of things. First of all, it tells the browser that a form is coming. It also instructs the browser through the action tag where to send the input and the method tells how to send it. For this review, we will be sending the input to a cgi script I have on the server. While the server is not set up to send mail, you will still get a confirmation page that lets you know that the information was passed. We will talk more about the method as we get into PHP.

Set up a FORMS page, ftp it to your folder on the server and test it. Save as forms_test.htm

<form action="send to cgi script" method="post">

1. Text Box:

<input type="text" name="last_name" size="20" maxlength="40">

2. Textarea

<textarea name="question" rows="10" cols="40"> </textarea>

3. check box

<input type="checkbox" name="sshs">South Salem High School

<input type="checkbox" name="nshs">North Salem High School

4. radio button

<input type ="radio" name="size" value="small">small

<input type ="radio" name="size" value="medium">medium

<input type ="radio" name="size" value="large">large

5. Drop-down list

<select name="color">

<option value="red">red</option>
<option value="blue">blue</option>
<option value="green">green</option>

</select>

<INPUT TYPE="submit" VALUE="Submit"> <INPUT TYPE="reset" VALUE="Reset">

</form>