Web Development HTML Guide - Learn HTML
Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML



Developer Manuals
Learn HTML
Learn PHP
Learn MySQL
Learn CSS
Learn Pear


Developer Scripts
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Developer Resources
Developer Tools
Developer News
Developer Forums
Developer Content
Developer Book Reviews
Survey Software

Web Hosting Directory
Budget Web Hosting
ColdFusion Hosting
Dedicated Servers
Domain Hosting
E-Commerce Hosting
Email Hosting
Free Web Hosting
Linux Web Hosting
Managed Hosting
Reseller Hosting
Small Business Hosting
Windows Web Hosting

Attribute for <INPUT ...>
CHECKED

CHECKED indicates that a radio button or checkbox should be on when the form first loads.

this code produces this
<FORM ACTION="../cgi-bin/mycgi.pl">

<INPUT TYPE=CHECKBOX NAME="maillist" CHECKED>Yes! Put me on the list!

<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
Yes! Put me on the list!

<FORM ACTION="../cgi-bin/mycgi.pl">

What color would you like?<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="green"         >Green<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="red"           >Red<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="blue"  CHECKED >Blue<BR>
<INPUT TYPE=RADIO NAME="color" VALUE="brown"         >Brown


<P><INPUT TYPE=SUBMIT VALUE="submit">
</FORM>
What color would you like?
Green
Red
Blue
Brown

Checkboxes are off by default. There is no default for which radio button is on when the form loads; most browsers have none on, some put the first one on.


Copyright Idocs, Inc. Written by Miko Sullivan











About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: