[SWLUG] Populating radio buttons

pbhj (swlug) swlug at alicious.com
Fri Jun 23 18:41:46 UTC 2006


And of course you'll be wanting standards compliant xhtml ...

<input type="checkbox" id="option2" name="option2" value="cheese" checked="checked" />

See eg http://webdesign.about.com/od/htmltags/p/bltags_inputchb.htm for checkboxes and http://www.w3.org/TR/xhtml1/#h-4.10 for name vs. id information. I can't recall if you need a name (with the id) for input elements but you definitely do for your form.

On Friday 23 June 2006 13:45, Toby Maxwell-Lyte wrote:
> If you are wanting to unset them then perhaps checkboxes might be better?
>
> <input type="checkbox" name="option2" value="cheese" checked="checked">

-- Linux ixthus 2.6.16.13pbhj #1 PREEMPT Fri May 5 21:37:32 BST 2006 i686 athlon i386 GNU/Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/swlug/attachments/20060623/5cafdcac/attachment.html>


More information about the Swlug mailing list