What is it your trying to do in the cfsets? Structure? Ade
-----Original Message----- From: Thane Sherrington [mailto:[EMAIL PROTECTED]] Sent: 29 July 2002 16:33 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 ______________________________________________________________________ Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.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