">
Domain Registration : Discount Domain Pricing : Website and Domain Hosting : Frontpage 2000 Hosting : Website Development and Promotion : Secure E-Commerce : Shopping Cart Software : Linux and Windows NT : Graphic Design : Free Email Services : Fast Servers : Low Cost!


RESOURCES




Forms provide a way to prompt the user for information and to carry out actions based on that input. A form consists of one or more input controls that the user uses to enter text and makes choices. Once the user provides the input, the form collects the information and sends it to a specified destination on a server. To carry out the requested action, the server must have a script or other service that corresponds to the given destination. This script processes the information and carries out any actions.

To create a form, you use the FORM tag to enclose one or more INPUT tags. The FORM tag specifies the action to take when the user has provided the information. The INPUT tags define the type and function of the input controls in the form. The following example shows how to combine these tags to create a form:


Name


Password


Color
Red Green Blue

Comments


Send receipt



<form action="cgi-bin/some_script.pl" method="POST">
<br>
<br>
Name
<br>
<input name="CONTROL1" type=textbox value="Your Name">
<br>
<br>
Password
<br>
<input type="PASSWORD" name="CONTROL2">
<br>
<br>
Color
<br>
<input type="RADIO" name="CONTROL3" value="0" checked>Red					
<input type="RADIO" name="CONTROL3" value="1">Green					
<input type="RADIO" name="CONTROL3" value="2">Blue
<br>
<br>
Comments
<br>
<input type="text" name="CONTROL4" size="40" maxlength="250">
<br>
<br>
<input name="CONTROL5" type=checkbox checked>Send receipt
<br>
<br>
<input type="SUBMIT" value="OK">					
<input type="RESET" value="Reset">
</form>












Copyright © 1995-2003 Sidetrips™ Internet Services, Inc. All rights reserved.

Reproduction in whole or in part in any form or medium without express
written permission of Sidetrips Internet Services, Inc. is prohibited.

sidetrips.com™, hostserver.com™, registera.com™, htmlshop.com™,
and associated domains are trademarks of Sidetrips™ Internet Service, Inc.

Privacy Policy | Acceptable Use Policy | Terms of Service