Hello, I have a real simple php problem. I am doing a form and generating it through php. I set up my variables and want to set up an if else statement. In the first part of the statement (actually both parts), I want to direct the user to a link, how would I do that in php? Here's a sample of what I'm talking about:
<?
$name=$POST['name'];
$email=$POST['email'];
$comments=$_POST['comments'];
$to="bergerg2@sunyit.edu";
$message="Feeback Form from $name\n
$name's email:
$email\n
Comments: $comments";
if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {
echo //need the code that will redirect the user to a different page
//part of the if else the user filled it out correctly;
} else {
echo //need the code that will redirect the user to a different page
//part of the if else the user filled out incorrectly;
}
?>
Thanks