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

    Originally posted by ZibingsCoder
    See how far the gerbil hole goes my friend...

    What happened to the rabbit hole? Did I miss a meeting???

      Something about copyright infringement or something...took me months to get out of that damn place, but I will NEVER forget.

        Well, that's what you get for accepting strange, unmarked pills from strangers.

        Last time I did that, I woke up in a van down by the river
        shivers

          Write a Reply...