Form to email problems
Posted: Fri Aug 15, 2008 2:59 pm
Hi there
I'm a designer trying to use a bit of php to process a form but am having problems getting it to work.
If you visit http://www.scavengers-uk.com and then type /feedback.php you'll see the simple form I'm using for testing purposes (ignore /request.html for the time being). Another file (also on the server) called sendmail.php is supposed to process the data and email it to root@scavengers-uk.com and then return the visitor to thanks.php.
The code of sendmail.php is
Thing is, nothing happens. Once or twice I got the email but with no content and then it stopped working altogether (at least it redirects to thanks.php, though!)
Many thanks for your help
James
I'm a designer trying to use a bit of php to process a form but am having problems getting it to work.
If you visit http://www.scavengers-uk.com and then type /feedback.php you'll see the simple form I'm using for testing purposes (ignore /request.html for the time being). Another file (also on the server) called sendmail.php is supposed to process the data and email it to root@scavengers-uk.com and then return the visitor to thanks.php.
The code of sendmail.php is
Code: Select all
<?php
mail("root@scavengers-uk.com", "Feedback Form results", $_REQUEST[message], "From: $_REQUEST[email]", "-froot@scavengers-uk.com".$_REQUEST[email]);
header( "Location: http://www.scavengers-uk.com/thanks.php" );
?>Many thanks for your help
James