|
|
|
|
|
|

spacer

FORMS 


CONCEPT

Forms are what make the web truly interactive. Forms enable browsers [or clients] to send information up to web servers. Forms and buttons do not work independently in HTML. They require the use of a higher-level scripting environment called CGI or Common Gateway Interface. CGI uses a scripting language like Perl or C++ to send commands to a web server. This interaction is beyond the scope of this course. JavaScript may be used to submit forms as well.


FORMS

A variety of forms are available in HTML. See the enclosed example from Castro for tag syntax and resulting appearance.

Text Allow user to enter text in a defined field area

Menus Allow a user to choose an option from a drop-down or open menu

Checkbox Allow user to select several options from a given set

Radio Allow user to select only one option from a given set


BUTTONS

Buttons are clickable objects that carry out a recognized command such as submit or reset.


FORMS VIA EMAIL

To send a form via email, use the following tag:

<FORM ACTION="mailto:jsmith@here.com" ENCTYPE="text/plain" METHOD=POST>


RESOURCES

Castro Chapter 11

www.cookwood.com

Response-o-matic : Add forms to your site without programming


TO LEARN MORE ABOUT CGI

The Common Gateway Interface

CGI Made Really Easy