This should do it

<CFIF NOT ISDefined(“form.accept”) or (form.accept neq 1) >

 

 


From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: 10 May 2004 12:57 PM
To: '[EMAIL PROTECTED]'
Subject: [ cf-dev ] Newbie: - IF a variable doesn't exists THEN

 

Hi guys,

 

I have a variable which is sent to a CF page from an HTML form. What I want to do is see if the variable exists.

 

If it does then it loads the page content. If it doesn't the user is forwarded to another page.

 

Can anyone tell me how I can change this IF statement to run this check?

 

<CFIF (#form.accept# neq 1) OR (#form.accept# ** DOESN'T EXIST **)>

 

Thanks in advance,

JamesB

Reply via email to