Parse Error in IF Statement

Reply

Join Date: Aug 2005
Posts: 2
Reputation: bigmaneric97 is an unknown quantity at this point 
Solved Threads: 0
bigmaneric97 bigmaneric97 is offline Offline
Newbie Poster

Parse Error in IF Statement

 
0
  #1
Aug 1st, 2005
In the follow code I am getting a parse error. I have another form that I use this exact same code on to handle the form and it works. Just lost...

if ($_POST['ClientLessVPN']) == 'Yes' { <-------------
$body2 = "Clint-Less VPN\n";
}

The first line of the code is where I am getting the parse error.

Thanks for any and all help.
Reply With Quote Quick reply to this message  
Join Date: Jun 2005
Posts: 147
Reputation: ashneet is an unknown quantity at this point 
Solved Threads: 1
ashneet's Avatar
ashneet ashneet is offline Offline
Junior Poster

Re: Parse Error in IF Statement

 
0
  #2
Aug 1st, 2005
Hi
I am probally not the best person to help you with this but I think I know where the problem is.

Try this code:
[PHP]
if ($_POST['ClientLessVPN'] == 'Yes')
{
$body2 = "Clint-Less VPN\n";
}
[/PHP]

I am pritty sure that this should fix the problem...
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 138
Reputation: sarahk is an unknown quantity at this point 
Solved Threads: 1
sarahk's Avatar
sarahk sarahk is offline Offline
Junior Poster

Re: Parse Error in IF Statement

 
0
  #3
Aug 2nd, 2005
Originally Posted by ashneet
Hi
I am probally not the best person to help you with this but I think I know where the problem is.
Ashneet, you're as good as the rest of us!!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 2
Reputation: bigmaneric97 is an unknown quantity at this point 
Solved Threads: 0
bigmaneric97 bigmaneric97 is offline Offline
Newbie Poster

Re: Parse Error in IF Statement

 
0
  #4
Aug 2nd, 2005
Thanks for the help.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC