|
HTML FormsHTML forms enable us to create a simple and flexiable user interface to CGI programs with text fields, checkbox, menu and other useful tools. Constructing a form is less intimidating than it may appear at first. It works the same way as the ordinary HTML tags. If you've ever worked on any other HTML tags, you may find it's similar to form tag. Form ExampleHere's the HTML source code for the above form: <FORM METHOD=POST ACTION="cgi-bin/hello.pl"> Enter your Name: <INPUT NAME="name" TYPE="TEXT" SIZE="20" MAXLENGTH="30"> <INPUT TYPE="SUBMIT" VALUE="Send"> <INPUT TYPE="RESET"> </FORM> Let's take a close look at each of the elements of the form. |