-3

I am very new to coding and I am trying to fix my form so it redirects to another webpage after the user submits. I have read the other threads but I cannot get it to work. Here is the code, and any help would be great!

$recipient = "#@gmail.com";

$subject = "User Sign Up Form";
$mailheader = "From: $user_email \r\n";
echo "Thank You! Submitted Successfully.";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");

?>

1 Answers1

2
header('location: example.php');
exit();
Derek
  • 2,927
  • 3
  • 20
  • 33