Operator precedence assistance.

Posted on 16th Feb 2014 by admin

I did a quick Google search and couldn't quite find the answer I wanted in terms I could understand, so, if I may, I'd like to ask quite a specific question.

I'm creating a contact form, and I need to make sure all of the elements are filled in:
Code: if(isset($_POST['name']) && isset($_POST['comment']) && isset($_POST['from']) && $_POST['comment'] != "Enter your message here.")
{
//send me an email;
}
else
{
//Tell the user to fill everything in;
}

I've tested the code a few times, but it keeps executing the else. I've checked it a few times, and I can't understand why

Other forums