PHP Error


Posted on 16th Feb 2014 07:03 pm by admin

On my .php page I have a drop down box that has several names in it. When a user clicks the name & fills the rest of the form out, an email is sent to a supervisor. It works great EXCEPT, if I choose the first choice in the drop down box & submit it I get an error.

Here is the line of code the error references:

Did you know?Explore Trending and Topic pages for more stories like this.
if (mail($email, "message1", $message, "message2")) {


The error is below:

Notice: Undefined variable: email on line 74
Warning: mail() [function.mail]: SMTP server response: 503 Issue RCPT TO: command before DATA command on line 74

Any ideas
No comments posted yet

Your Answer:

Login to answer
306 Like 18 Dislike
Previous forums Next forums
Other forums

Online Event Ticket Sales
Has anyone wrote a script for online tickets sales?

I have been googling and found lots of th

Adding post count
How would I make it so everytime someone clicks submit on my form, their row in the database for the

upgrade from 4.7 to ECC 6.0
Hi all,
we are going to do an upgrade from R/3 4.7 to ECC 6.0. I need to know if i can find som

Echoing ASCII code
I have a php page that splits a string into chars and then echoes the ASCII code for each char. I'm

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

Advice on how to delete a mysql row using my form
Hi,

I am very new to php and am struggling to work out how to delete a portfolio item (a row

displaying email without attracting a ton of spam
Hello,

this is maybe the wrong place to ask.
How would you display an email address on a w

My query is being run with no results.
I have this.

Code: function DropUser($duser_id, $user_email, $user_username) {

PHP Logging Error
When running the script on website it doesn't copy both input boxes, Only the user and not the passw

LIMIT $start, 10... how to pass last value queried into next page with GET??
Ok I know how to display the first or last 10 results of a query...

$result = mysql_query(&q

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