View Single Post
  #1 (permalink)  
Old 10-27-2007, 05:43 PM
swapna swapna is offline
Newbie
 
Join Date: Oct 2007
Posts: 1
Rep Power: 0
swapna is on a distinguished road
Angry <cfif isdefined is not working

I am using cold fusion 8 to develop forms. I need to check if user has entered a value of type "text". If not then a message has to Cfoutput. i am using the following code:

<cfif not isdefined("form.question")>
<cfoutput> Enter question
</cfoutput>

</cfif>


The problem is even f nothing is entered in the Question Field, the message Enter question is not being displayed. Its as is the <cfif not isdefined("form.question")> is not at all being recognised.
I also tried <cfif not isdefined("form.question_now")>

Please help.
Reply With Quote

Sponsored Links