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

help with database debug pls
Parse error: syntax error, unexpected T_ELSE in /home/content/m/e/s/mesick/html/students/05/php/chec

Need help-Error istream header declaration
Hi Everyone ,

I am having issue with istream declaration. I am new to C programming.
can a

List/Menu Box
On an edit page when you want something to select what a user has previously selected from the datab

Basic Question about Threading and PHP...
I have a page that I am working on and it is taking several hours to process. The basics of what th

need a script for 3 pages
I have a customer who wants me to set up a site with a number of pages with the following requiremen

Redirect not working after making a POST/GET
Hi Everyone,

I am a novice in PHP. Here I have 2 pages, one page with a textbox and button an

mysql_affected_rows() usage
Possibly a MySQL issue, but the function that is not behaving in the anticipated way is a PHP functi

Pipe email to PHP - get mail adress from MySQL - send?
Hi all,

this is the challenge:

1) Our faculty at the college where I'm employed includ

making web pages for accounts
Hello, I would like to make pages for accounts on my website im making (its not a real website..im j

show the direct link into href
I want to display link on the page. i am fetching the data(URL) from database,actually before that i

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