<cfif isdefined("form.accept") and form.accept eq "1">
    display the content
<cfelse>
    Go to the other page
</cfif>
 
hth
 
paddy
-----Original Message-----
From: James Buckingham [mailto:[EMAIL PROTECTED]
Sent: 10 May 2004 12:57
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


_____________________________________________________________________
This e-mail has been scanned for viruses by MCI's Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com

Reply via email to