Jump to content


Photo

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


  • Please log in to reply
1 reply to this topic

#1 joseph

joseph
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts

Posted 12 July 2006 - 01:07 AM

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:
$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>";   
} 

:) 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.

#2 Chevy

Chevy
  • Members
  • PipPipPip
  • Advanced Member
  • 163 posts

Posted 12 July 2006 - 01:14 AM

header ("Location: http://www.name.html");

Not headers




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users