Hi
I have an user input form that has this php script. It works fine but I want the page that is displayed after the user post the form to take the user back to the same page that the form was on.
Presently it goes back to
header( "Location: http://kiwioffice.com/feedback.html" );
thanks everyone..
<?
function checkOK($field)
{
if (eregi("\r",$field) || eregi("\n",$field)){
die("Invalid Input!");
}
}
$title=$POST['title'];
checkOK($title);
$www=$POST['www'];
checkOK($www);
$name=$POST['name'];
checkOK($name);
$email=$POST['email'];
checkOK($email);
$comments=$_POST['comments'];
checkOK($comments);
$to="memememe@woosh.co.nz";
$message="Title: $title \n\n Name: $name \n\nComment:\n$comments\n\nE-mail Address: $email\n\n www $www";
mail($to,"Comments From Your Site",$message,"From: $email\n");
header( "Location: http://kiwioffice.com/feedback.html" );
?>