I have index.php and process.php, both in my main host directory. My host, AwardSpace, supports php.
index.php:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Form</title>
</head>
<body>
<form method="post" action="http://***don't check it***.awardspace.com/process.php">
Email: <input name="email" type="text" /><br />
Message:<br />
<textarea name="message" rows="15" cols="40">
</textarea><br />
<input type="submit" />
</form>
</body>
</html>
process.php:
<?php
$email = $_REQUEST['email'] ;
$message = $_REQUEST['message'] ;
mail( "fatherchaos.wc3@gmail.com", "Feedback Form Results", $message, "From: $email" );
header( "Location: index.php" );
?>
Everything seems to work fine, the header redirects the user back to the form after processing process.php, but no mail is sent.
Can anyone help?
Thanks!