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.

Recommended Answers

All 3 Replies

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:

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

I am pritty sure that this should fix the problem...

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.