|
This should do it <CFIF NOT ISDefined(“form.accept”) or (form.accept neq 1) >
From: James Buckingham
[mailto:[EMAIL PROTECTED]
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 |
- [ cf-dev ] Newbie: - IF a variable doesn't exists THEN James Buckingham
- RE: [ cf-dev ] Newbie: - IF a variable doesn't exist... Paddy McKay
- Re: [ cf-dev ] Newbie: - IF a variable doesn't exist... Tom Smith
- RE: [ cf-dev ] Newbie: - IF a variable doesn't exist... Lucas Sherwood
- RE: [ cf-dev ] Newbie: - IF a variable doesn't exist... James Buckingham
- Re: [ cf-dev ] Newbie: - IF a variable doesn't exist... duncan . cumming
