next up previous
Next: HTML Forms as an Up: Forms: Facilitating User Input Previous: Hidden Input

An Example Form

This section presents a simple form and shows how it can be represented using the HTML forms facility, filled out by a user, passed to a server, and generate a reply. The form asks for information about using the World Wide Web.

Here is an HTML document that defines the Example Form just presented

You can select this link to see what this form looks like from your browser

<html>
<head>
<title>This is a practice form.</title>
</head>

<body>

<FORM METHOD=POST
        ACTION="http://www.cc.ukans.edu/cgi-bin/post-query">

Please help us to improve the World Wide Web by filling in 
the following questionaire:

   <P>Your organization? <INPUT NAME="org" TYPE=text SIZE="48">

   <P>Commercial? <INPUT NAME="commerce" TYPE=checkbox>

           How many users? <INPUT NAME="users" TYPE=int>

   <P>Which browsers do you use?

   <OL>
    <LI>Cello <INPUT NAME="browsers" TYPE=checkbox VALUE="cello">
    <LI>Lynx <INPUT NAME="browsers" TYPE=checkbox VALUE="lynx">
    <LI>X Mosaic <INPUT NAME="browsers" TYPE=checkbox VALUE="mosaic">
    <LI>Others <INPUT NAME="others" SIZE=40>
   </OL>

A contact point for your site: <INPUT NAME="contact" SIZE="42">

<P>Many thanks on behalf of the WWW central support team.

    <P><INPUT TYPE=submit> <INPUT TYPE=reset>

</FORM>
</body>
</html>



Dave Marshall
9/28/2001