Let's look at a very simple form:
| this code | produces this |
<FORM ACTION="/cgi-bin/html/mycgi.pl"> favorite color: <INPUT NAME="color"> </FORM> |
This form has all the required elements for a form:
<FORM ACTION="/cgi-bin/html/mycgi.pl">
ACTION<FORM ...>
<INPUT NAME="color">
<INPUT ...><TEXTAREA ...><SELECT ...>
</FORM>
Of course, this form doesn't do much. You can type something into the one field, but that's it, nothing happens from there. In the next section, we expand the form a little.
Forms and CGI >>>