Operator precedence assistance.


Posted on 16th Feb 2014 07:03 pm 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.")
Did you know?Explore Trending and Topic pages for more stories like this.
{
//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
No comments posted yet

Your Answer:

Login to answer
61 Like 34 Dislike
Previous forums Next forums
Other forums

i need help with php header and footer
I have designed a header and footer for my site and they seem to be ok when they are running individ

Simple Variable Question
Hi everyone.... again,

I am really getting into php still. Learning more every day. I love it

New to mysqli library - Multiple query problem
Greetings,

I am writing a batch program that executes 3 queries on a single page. Using mysql

New to Arrays
Hi I am new to PHP (a week and a half now) and I am just beginning to read about arrays. I understan

is this the proper use of mysql_real_escape_string() to prevent sql injections?
i was wondering is this the proper use of mysql_real_escape_string() to prevent sql injections? any

How to read posted binary data from a mobile device and post it to a web server?
Here is the senario...

I have a mobile device (MD) that posts binary data to a Web Server (WS

natcasesort works on one server but not on another
Hi

I have a problem that I was hoping that someone can help me with.

I'm trying to use

Extending Exception to contain method name
I was wondering, if there's a way to extend Exception in such a way, that it would contain name of a

Sales orders ans reservations not taken into account on MPS / MRP
Hello,

I am implementing the MPS / MRP and I have the following problem:

I ha

How to grab certain words ??
I am working with this API

Returns JSON.
curl http://letsbetrends.com/api/current_trends

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash