|
ok I took it out and now the code looks as follows:
<?
$name = $_REQUEST[ 'name'];
$email = $_REQUEST['email'];
$subject = $_REQUEST['subject'];
$message = $_REQUEST['message'];
if (!isset($_REQUEST['email'])) {
header( "Location: http://www.the-three-broomsticks.com/feedback.html" );
}
elseif (empty($name) || empty($Email) || empty($subject) || empty($message))
?>
<html>
<head><title>Error</title></head>
<body>
<h1>Error</h1>
<p>
Fast on the button are we, it seems you have forgot to enter your
name, email, subject or message, please press the back button on
your browser and enter the information before continuing...
</p>
</body>
</html>
<?
}
else {
mail( "ttbbartender@the-three-broomsticks.com", "Feedback Form Results",
$message, "From: $email" );
header( "Location: http://www.the-three-broomsticks.com/thanku.html" );
}
?>
but you'd think it would work now, but no now when you try and send something it goes as follows:
Parse error: parse error in /home/virtual/site95/fst/var/www/html/sendmail.php on line 35
Theres one more thing, ive included the options for whom the mail should be sent to, would this require more code, im not sure the current code will allow this feature to work.
|