To get the IsDefined() to work, try this: <CFIF IsDefined("Form.AnswerValue#Answers#")>
Chris Lofback Sr. Web Developer TRX Integration 28051 US 19 N., Ste. C Clearwater, FL 33761 www.trxi.com > -----Original Message----- > From: Thane Sherrington [mailto:[EMAIL PROTECTED]] > Sent: Monday, July 29, 2002 11:33 AM > To: CF-Talk > Subject: Checking form info > > > I have a form with with 5 text fill ins, and I want to check > to see if some > aren't entered. For instance, I might have Field 1,2, and 5 > filled in and > 3 and 4 blank. I was using code like this: > <CFLOOP index="Answers" from="1" to="5" step="1"> > <CFSET Form.AnswerHeading=Form["AnswerHeading"&Answers]> > <CFSET Form.AnswerValue=Form["AnswerValue"&Answers]> > <CFSET Form.AnswerID=Form["AnswerID"&Answers]> > > To get the data from the form fields, but if the field is blank this > crashes, and I can't get an IsDefined to work - I was using this: > > <CFIF IsDefined("Form["AnswerValue"&Answers]"> > > Any ideas would be appreciated. > > T > > ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists