Re: Re: php form action breaks script

From: Date: Thu, 28 Jun 2012 01:12:06 +0000
Subject: Re: Re: php form action breaks script
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-318319@lists.php.net to get a copy of this message
"Tim Dunphy" <bluethundr@gmail.com> wrote in message news:CAOZy0em5duhBY-QV+Y1u-E+c5yD7g5utauhomOyU3Z7JmA-JUg@mail.gmail.com... Notice: Undefined index: subject in /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php on line 23 Notice: Undefined index: elvismail in /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php on line 24 Notice: Undefined index: [PHP_SELF in /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php on line 62 [Wed Jun 27 20:13:42 2012] [error] [client 127.0.0.1] PHP Notice: Undefined index: [PHP_SELF in /Library/WebServer/Documents/examples/ch03/final/makemeelvis/sendemail.php on line 62, referer: http://localhost/elvis/ You're missing an input (POST) for the field named 'subject'. Something change in your html? As in you no longer have a 'subject' input field? Same for the other field named. As for the missing PHP_SELF - did you start a session? I could be way off on this. The errors are even giving you the line number so it shouldn't be hard to find!

« previous php.general (#318319) next »