Could someone PLEASE help me as my webhost support side just confuses me?
I am making a website for a friend but the contact page does not return to a thanks page when the submit button is pressed. The mail is sent correctly but it is just the redirection that is the problem.
I have a mail.php file and the code is:
<?
$to = ‘
$subject = ‘Request via website’;
$message = ‘From: ‘ . $_REQUEST[‘name’] . “nn” . $
‘Reply-To: ‘ . $email . “rn” .
‘X-Mailer: PHP/’ . phpversion();
mail ($to, $subject, $message, $headers);
header(“Location: thanks.html”);
?>
The coding in my contact page is:
<form method=”post” action=”mail.php”>
<table>
<tr>
<td>Your Name:</td>
<td><input type=”text” name=”name” ></td>
</tr>
<tr>
<td>Your e-mail address:</td>
<td><input type=”text” name=”email” ></td>
</tr>
<tr>
<td> Your Message:</td>
<td><textarea name=”data” cols=40 rows=10></textarea></td>
</tr>
<tr>
<td colspan=”2″><div align=”center”>
<input type=”submit” >
</div></td>
</tr>
</table>
</form>
If anyone could help me I would be really grateful. Remember I am a simple soul.
Regards
Paul