Jump to content

Archived

This topic is now archived and is closed to further replies.

joseph

feedback form... how to redirect to another html page?

Recommended Posts

This codes below is a portion of what I've pasted from my feedback.php . I already have the $headers declared above,
it means that I can't use another header function below.. so what should I do to redirect to another page after the feedback form is sent?

php:[code=php:0]
$headers  = "From: $FirstName $LastName \r\n";
$headers  .= "Reply-To: $Email";

if (mail($recipient,$subject,$message,$headers)) {
headers ("Location: http://www.name.html");
} else {
  echo "<p>I'm sorry $Title $FirstName $LastName, Mail NOT sent this time.</p>"; 
}
[/code]

:) could you give me an example? I can't seem to make it work redirect it after mail has been sent. It has to redirect to another html page saying that the mail has been sent.

Share this post


Link to post
Share on other sites
[code]
header ("Location: http://www.name.html");
[/code]

Not headers

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.