I have made two pages for a request page , on the request page I haveAnd on a page called "LOCATION.php" I havePHP Code:<form name="form" id="form" method="post" action="LOCATION.php"><br>
question :<input name="title" type="text" /><br>
<br>
<br>
<select name="rate">
<option>5</option>
<option>4</option>
<option>3</option>
<option>2</option>
<option>1</option>
</select><br><br>
<textarea name="message" ></textarea>
<br><br>
<input type="submit" name="Submit" value="button text">
Does anyone know what i'm doing wrong many thanks , MattyPHP Code:<?phpif ($_SERVER['REQUEST_METHOD'] != 'GET'){
$name = $_POST['name'];
$email = $_POST['email'];
$subject = $_POST['subject'];
$message = $_POST['message];
$email = "
Name: $name /n Email: $email /n Subject: $subject/n Message: $message /n
";
mail("my email address", $subject, $email);
Header("Location: thanks.html");
}
else
{
echo "Sorry your message could not be sent. Go back and try again!";
}
?>


Reply With Quote




