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

Delete all files in folder except with certain name
I have a script that I want to delete all files in a folder (taken from a database) except for one n

need help with mail()
hi i want to send an email with attaching pdf file using php. i have the following script but the pr

check_changed_data - I can't get data from the called method event
I use check_changed_data to trigger my event method.

The method delivers er_changed_data.

Check if another session of the page is running?
I want to keep people from opening multiple tabs, or sessions of my Facebook app. Is it possible to

Agency Business Process
Hi,

I don’t understand the process of the agency business in SAP.

In my

Displaying Multidimensional Arrays...about to put my head in a vice, PLEASE HELP
I am fairly new to PHP and MySQL and I have a problem which I have been trying to resolve for days.

Lack of simpleXML Documentation
What is up with this.

Look at: http://www.php.net/manual/en/function.simplexml-load-file.php<

Preg_match unknown modifyer
Hello,

Im trying to write a little script for my forums i need to get the reply from my forum

Custom array sort? asc then desc
Any ideas how I could sort this array? I've been trying for a while. Maybe with usort, but I have no

How to generate a random array of integers subject to a certain constraint
I am writing a program that asks the user to enter an integer N and then generates a random array of

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