Text Links Ads : Marketing Tips Store : Search Engine Optimization Strategies
WebPosition Gold Pro : Domain Registration Bank : Optilink Software : GoDefy
Mike's Marketing Tools : Mike's Ecommerce Software : Text Links Guide
 
Web HTML-HTML.com
You are here: HTML Codes > Forms > <INPUT ...> > TYPE

TYPE = CHECKBOX

CHECKBOX creates a checkbox which can be either on or off:

this code produces this
<FORM ACTION="../cgi-bin/html/mycgi.pl">
<INPUT TYPE=CHECKBOX NAME="maillist">Yes! Put me on the list!<P>
<INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
Yes! Put me on the list!

CHECKBOX is often used in groups to indicate a series of choices any one of which can be on or off:

this code produces this
<FORM ACTION="../cgi-bin/html/mycgi.pl">
<INPUT TYPE=CHECKBOX NAME="mushrooms" >mushrooms<BR>
<INPUT TYPE=CHECKBOX NAME="greenpeppers">green peppers<BR>
<INPUT TYPE=CHECKBOX NAME="olives" >olives<BR>
<INPUT TYPE=CHECKBOX NAME="onions" >onions<P>
<INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
mushrooms
green peppers
olives
onions

By default, the checkbox is initially off. If you want the checkbox initially on, use the CHECKED attribute. CheckboxCHECKBOXs are only sent to the CGI if they are on; if they are off, no name/value pair is sent (try out the form above to see).

TYPE=RADIO >>>

Copyright © 2002-8 Art Dacor USA LLC. All Rights Reserved.
3727 West Magnolia Blvd #489, Burbank, CA, 91505, USA.
www.HTML-HTML.com