Hello everyone, I apologize for my lack of PHP knowledge. I put up a contact page, and I am needing the php to give a link back to the homepage after the submit button has been hit(you know – it would say thanks for submitting, click here to return). The trouble is, if I put in a link, it just gives me an error. Here is what the PHP looks like:
[CODE]<?php
$to = “mailto:——-“;
$headers = “From: ” . $from . “rn”;
$headers .= “Reply-To: ” . $from . “rn”;
$headers .= “Return-Path: ” . $from . “rn”;
$from = $_POST[‘sender’]; if ( ereg(“r”,$from) || ereg(“n”,$from) || ereg(“%”,$from) ) die(“Why ?? “);
if ( mail($to,$subject,$message,$headers) ) {
echo “The email has been sent!”;
}else{
echo “The email has failed!”;
}
?>
Can anyone tell me what to try? I tried
[CODE]echo “The email has been sent!<br> <a href=”gohere.htm”>Go Here</a>”;
}
, but I get nothing but an error when I try that.
Any help would be greatly appreciated!
Thanks,
Ryan