Everything works fine for creating the form and the related mysql table. When I fill out the form and hit submit, I get the following errors:
Warning: Failed to Connect in c:\phpdev\www\nuke\process.php on line 13
Warning: Cannot add header information - headers already sent by (output started at c:\phpdev\www\nuke\process.php:13) in c:\phpdev\www\nuke\process.php on line 18
But, if i comment out line 13 in process.php (mail...) it works fine: puts the data in the specified mysql table and redirects to the specified page.
Any ideas how to fix it so it will also e-mail me the form submission?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well that means that PHP cannot connect to your mail server. You need to fix this in your php.ini if you are going to use the mail function. If you are not running a local SMTP server on that machine, you can edit php.ini and specify your ISP's mail server if it allows you to do that. Otherwise you will find a webhost that has access to a mail server. Alternatively, you do without using the mail feature.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Its in french but you should understand other way replace in your php.ini smpt=Localhost like as smtp=smtp.provider.xx the same of you mail account for Easyphp users i give the good way on that posted link below !
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Everything works fine for creating the form and the related mysql table. When I fill out the form and hit submit, I get the following errors:
Warning: Failed to Connect in c:\phpdev\www\nuke\process.php on line 13
Warning: Cannot add header information - headers already sent by (output started at c:\phpdev\www\nuke\process.php:13) in c:\phpdev\www\nuke\process.php on line 18
But, if i comment out line 13 in process.php (mail...) it works fine: puts the data in the specified mysql table and redirects to the specified page.
Any ideas how to fix it so it will also e-mail me the form submission?
Well that means that PHP cannot connect to your mail server. You need to fix this in your php.ini if you are going to use the mail function. If you are not running a local SMTP server on that machine, you can edit php.ini and specify your ISP's mail server if it allows you to do that. Otherwise you will find a webhost that has access to a mail server. Alternatively, you do without using the mail feature.
I had the same problem and here is the solution propose by Ali :
http://www.phpscripts-fr.net/phorum/read.php3?f=1&i=41685&t=41685
Its in french but you should understand other way replace in your php.ini smpt=Localhost like as smtp=smtp.provider.xx the same of you mail account for Easyphp users i give the good way on that posted link below !