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.")
{
//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

Rounding a number queried from a database
I know that to display a rounded number you just do echo "round($number)";. But how would

add 20 000 to the rowcnt
Hi ...
I need to add 20 000 to the row count but just cant find a way to do this i am new to php

list files from folder, only one for each date
I have many files in a folder and wish to only list one of each date

these are the file names

php form help
Hey,

I use a control file to set my meta tags and titles

Here's an example
Code: &a

How to write on database when a link is clicked?
Hi, I have a list of products in a gridview. When the link is clicked currently it takes to an ext

Breaking results into week blocks
I have a set of dates (and times), which are returned from a mySQL query.

These usually span

Simple image grab script.
I was wondering if it was possible and if anyone knew how to make a simple php script that looks at

need help in update query
i create a form for update. there are 8 columns in my mysql table. on my main page all the data is r

Need help making a script that moves data into acrhive table
Hi,

I'm kinda new to php/mysql

And i wrote a simple script to store sales lead for a b

Help with Hyperlink
Hi,

What I am trying to do may be simple, I just can't get it to work. Ok...

I am usin

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