Hi, i am trying to get an email form to work via PHP but i do not know how to get the site to collect the data from the form and send it to an email. Can you help please?
Hi, i am trying to get an email form to work via PHP but i do not know how to get the site to collect the data from the form and send it to an email. Can you help please?
You need to call a php script from a form in you html. Point the “action” attribute of the form element at the php script.
http://us.php.net/manual/en/function.mail.php
http://email.about.com/od/emailprogrammingtips/qt/How_to_Send_Email_from_a_PHP_Script.htm
http://www.w3schools.com/php/php_mail.asp
Comment by joe — December 14, 2009 @ Monday, December 14, 2009 12:35 pm
I’m not sure that you will be able to get his working on the CUNY server as it would require you using CUNY’s mail server.
Comment by joe — December 15, 2009 @ Tuesday, December 15, 2009 3:00 pm
well thank you for the links anyway, they really helped. I think your right, i loaded the site on the server but i can’t get the form to send, it just takes me to a blank page.
Comment by Reynoir Lewis — December 15, 2009 @ Tuesday, December 15, 2009 6:04 pm