Example 8


<HTML> <!-- A simple form to solicit input from "readers" --> <HEAD> <TITLE>Reader's Comments Form</TITLE> </HEAD> <BODY BACKGROUND="./images/bg.gif"> <CENTER> <H2>Reader's Comments Form</H2> <FORM METHOD = POST ACTION="http://www.sdsc.edu/CGI/CompSci/pb/comments.cgi"> <!-- Solicit input in the form of a table --> <!-- The table provides better control over text box placement--> <TABLE CELLPADDING = 5> <TR ALIGN = LEFT VALIGN = TOP> <TD><B> Name:</B></TD> <!-- Associate input in this field with the variable called "name" --> <TD><INPUT NAME = "name"></TD> </TR> <TR ALIGN = LEFT VALIGN = TOP> <!-- Associate input in this field with a variable called "email" --> <TD><B> E-mail Address:</B></TD> <TD><INPUT NAME = "email"></TD> </TR> <TR ALIGN = LEFT VALIGN = TOP> <TD><B> Phone Number:</B></TD> <TD><INPUT NAME = "phone"></TD> </TR> <TR ALIGN = LEFT VALIGN = TOP> <TD><B> Comments:</B></TD> <!-- Associate anything entered in this text box to a variable called "comments" --> <!-- Define a text area of 7 rows and 60 columns in which to enter comments --> <TD><TEXTAREA NAME = "comments" ROWS = 7 COLS = 60></TEXTAREA></TD> </TR> </TABLE> <!-- Define the buttons to either submit the form for processing or clear the form --> <INPUT TYPE="submit" VALUE = "Submit Comments"> <INPUT TYPE="reset" VALUE = "Reset Form"> </CENTER> </BODY> </HTML>