|
Mailing Lists
|
Home / Groups / ColdFusion Talk (CF-Talk)
isDefined inside a cfloopWhy not use <cfparams> on the action page and default the values? You can even default their value to "" and then if it equals that inform the user they need to go back and choose one. Or in your form on either the Yes or No, use checked="checked" to default one or the other to being checked. On Mon, Apr 30, 2012 at 10:31 AM, Steve LaBadie <slabadie@po-box.esu.edu>wrote: > > I am using radio buttons as well on the form and I get the same empty > results > > <label class="field-label-nostyle" for="UnderGrad"><strong>Do you have > an Undergraduate Degree?</strong></label> > <label class="field-label-nostyle" style="margin-left: 10px > !important">Yes <input type="radio" id="UnderGrad" name="UnderGrad" > value="Yes" /></label> > <label class="field-label-nostyle" style="margin-left: 10px > !important">No <input type="radio" name="UnderGrad" value="No" > /></label> > > Steve LaBadie, Web Manager > East Stroudsburg University > 570-422-3999 > http://www.esu.edu > slabadie@esu.edu > > > > <label for="Veteran">Veteran:</label> > > <select name="Veteran" id="Veteran"> > > <option>Select...</option> > > <option value="Yes">Yes</option> > > <option value="No">No</option> > > </select> > > Well that doesn't match what you're looking for in your form > processing code at all. First, this will always have a value in your > action page, and second, the name of the field will simply be > form.veteran, not form.veteran plus some number. > > Also, you might want to use radio buttons for Boolean questions > instead of select boxes. > > Dave Watts, CTO, Fig Leaf Software > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > > > |
May 22, 2013
|
|
|||||||||||||||||||||||||||||||||||||||||||||||||