The following program uses few features of an HTML Form, but it should give you an idea of how things work. This program will call a PHP program that uses the two variables sent to it, the name of the “student” and the “grade” that was selected.
<HTML>
<BODY BGCOLOR = “acqua”>
<H1> A Simple Form </H1>
<FORM ACTION = “processl.php3” METHOD = “post”>
Enter Your Name:
<INPUT TYPE = “text” NAME = “student”> <BR>
Select Your Grade Level:
<SELECT NAME = “grade”>
<OPTION SELECTED >12
<OPTION> 11
</SELECT><BR>
<INPUT TYPE=”submit” VALUE = “Submit”>
<INPUT TYPE=”reset” VALUE = “Clear”>
</BODY>
</HTML>