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

Reply via email to