Simple feedback form gives me error messages
Posted: Tue May 09, 2006 3:00 pm
Hi, quite new to PHP so I apologise if this could have been sorted out somewhere else.
PHP Version: 5.1.2
Display Errors: On
Error Level: Not E_ALL
Register Globals: Off
I tried to make a simple feedback form with these instructions: http://www.thesitewizard.com/archive/feedbackphp.shtml
I made a form.php file for the form, the sendmail.php file as per the instructions and a thankyou.html file which all go into my www folder (running all of this locally).
When I submit the form, I'm expecting it to send me an email and take the visitor to a thankyou page. This is what I get instead:
Firstly I tried changing this: error_reporting = E_ALL & ~E_NOTICE
To this: error_reporting = E_ALL
in the php.ini file, but I got the same errors and the phpinfo still says that error reporting is "Not E_ALL".
please help!
PHP Version: 5.1.2
Display Errors: On
Error Level: Not E_ALL
Register Globals: Off
I tried to make a simple feedback form with these instructions: http://www.thesitewizard.com/archive/feedbackphp.shtml
I made a form.php file for the form, the sendmail.php file as per the instructions and a thankyou.html file which all go into my www folder (running all of this locally).
When I submit the form, I'm expecting it to send me an email and take the visitor to a thankyou page. This is what I get instead:
The problem may well be down to the fact that it says "Error Level: Not E_ALL" in the above info, as I saw on a thread here that it needs to just be "Error Level: E_ALL".Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in C:\php\PortableWebAp3.2\Program\www\localhost\sendmail.php on line 6
Warning: Cannot modify header information - headers already sent by (output started at C:\php\PortableWebAp3.2\Program\www\localhost\sendmail.php:6) in C:\php\PortableWebAp3.2\Program\www\localhost\sendmail.php on line 7
Firstly I tried changing this: error_reporting = E_ALL & ~E_NOTICE
To this: error_reporting = E_ALL
in the php.ini file, but I got the same errors and the phpinfo still says that error reporting is "Not E_ALL".
please help!