I am new to ColdFusion. I'm trying to do some form field validation. However, my CFIF's don't seem to be working if the form.name and form.address fields are empty.
Here is my code:
<cfif IsDefined("form.name")>
<cfif IsDefined("form.address")>
Your shipping address is:<br>
<cfoutput>
#form.name#<br>
#form.address#<br>
#form.state#<br>
#form.shipping#<br>
#form.brochure#<br>
</cfoutput>
<cfelse>
You did not enter an address.
</cfif>
<cfelse>
You did not enter a name.
</cfif>