[thelist] Hidden Radio button

raskenbo raskenbo at gmail.com
Tue Jun 21 15:01:14 CDT 2005


Hi list.

I've Googled to no avail...

I would like to use a hidden field so that a name/value pair is passed
to the URL even if a user does NOT make a selection.

Is this possible?

My code generates two name/value pairs when a selection IS made.

Sample Code:

<fieldset>
    <legend>Question 1</legend>

    <input type="hidden" name="qa" value="0"></input>

    <input class="radio" id="aa" type="radio" name="qa" value="1"></input>
    <label for="aa">True</label>
    <input class="radio" id="ab" type="radio" name="qa" value="2"></input>
    <label for="ab">False</label>
    <input class="radio" id="ac" type="radio" name="qa" value="3"></input>
    <label for="ac">True and False</label>
</fieldset>

TIA,

Ken Chase
Freelance Web Design
http://www.kenchase.com


More information about the thelist mailing list