954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse Error in IF Statement

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.

bigmaneric97
Newbie Poster
2 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

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...

ashneet
Junior Poster
147 posts since Jun 2005
Reputation Points: 10
Solved Threads: 1
 
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!!!

sarahk
Junior Poster
144 posts since Apr 2005
Reputation Points: 10
Solved Threads: 1
 

Thanks for the help.

bigmaneric97
Newbie Poster
2 posts since Aug 2005
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You