944,052 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 1851
  • PHP RSS
Aug 1st, 2005
0

Parse Error in IF Statement

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigmaneric97 is offline Offline
2 posts
since Aug 2005
Aug 1st, 2005
0

Re: Parse Error in IF Statement

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...
Reputation Points: 10
Solved Threads: 1
Junior Poster
ashneet is offline Offline
147 posts
since Jun 2005
Aug 2nd, 2005
0

Re: Parse Error in IF Statement

Quote 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!!!
Reputation Points: 10
Solved Threads: 1
Junior Poster
sarahk is offline Offline
138 posts
since Apr 2005
Aug 2nd, 2005
0

Re: Parse Error in IF Statement

Thanks for the help.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
bigmaneric97 is offline Offline
2 posts
since Aug 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: PHP and MS Word Docs
Next Thread in PHP Forum Timeline: On The Fly Edit





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC