[thelist] Hidden Radio button

Peter Brunone (EasyListBox.com) peter at easylistbox.com
Tue Jun 21 15:21:14 CDT 2005

Hi Ken,

	How about just giving them an extra button (for the default
value) and checking it by default?  If you don't want to show an extra
one, try

<input type="radio" name="qa" value="0" style="display:none;" />



-----Original Message-----
From: thelist-bounces at lists.evolt.org On Behalf Of raskenbo

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:

    <legend>Question 1</legend>

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

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


Ken Chase
Freelance Web Design

* * Please support the community that supports you.  * *

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 

More information about the thelist mailing list