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