As long as you have some separation.. something like: <cfparam name="form.process" default="0" />
<cfif isdefined(form.process) and form.process eq 1> <cfparam name="form.foo" default="" /> ... <cfif form.foo eq ""> Nothing was entered! </cfif> ... <!--- process form ---> <cfelse> <!--- display form ---> <form> <input type="hidden" name="process" value="1" /> ... </cfif> Something like that.. but I always separate my form from the action page, makes the code less cluttered. On Mon, Apr 30, 2012 at 12:01 PM, Steve LaBadie <slaba...@po-box.esu.edu>wrote: > > Greg, > > Does it matter that form and the action page are on and the same? > > Steve LaBadie, Web Manager > East Stroudsburg University > 570-422-3999 > http://www.esu.edu > slaba...@esu.edu > > > -----Original Message----- > From: Greg Morphis [mailto:gmorp...@gmail.com] > Sent: Monday, April 30, 2012 12:12 PM > To: cf-talk > Subject: Re: isDefined inside a cfloop > > > Why 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 > <slaba...@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 > > slaba...@esu.edu > > > > > > -----Original Message----- > > From: Dave Watts [mailto:dwa...@figleaf.com] > > Sent: Monday, April 30, 2012 11:28 AM > > To: cf-talk > > Subject: Re: isDefined inside a cfloop > > > > > > > <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. > > > > > > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:350899 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm