# Email form redirect after submit?

**URL:** <https://forum.kirupa.com/t/email-form-redirect-after-submit/231664>\
**Category:** programming\
**Created:** [July 6, 2007, 2:38pm UTC](https://forum.kirupa.com/t/email-form-redirect-after-submit/231664 "2007-07-06T14:38:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Filmguy15](https://avatars.discourse-cdn.com/v4/letter/f/82dd89/32.png) [@Filmguy15](https://forum.kirupa.com/u/Filmguy15)\
**Post date:** [July 6, 2007, 2:38pm UTC](https://forum.kirupa.com/t/email-form-redirect-after-submit/231664/1 "2007-07-06T14:38:39Z")

</div>

Here is the email script that I am using for a form on my site…

```php

<?php
if(isset($_POST['submit'])) {

$to = "chase.wiseman@gmail.com";
$subject = "Contact Form Request";
$headers = "From: " . $_POST["fname"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$phone_field = $_POST['phone'];
$comments = $_POST['comments'];
 
$body = "From: $name_field
E-Mail: $email_field
Phone: $phone_field
Comments:
 $comments";
 
echo "Data has been submitted to ZombieStomp Creative!";
mail($to, $subject, $body, $headers);

} else {

echo "Error!";

}
?>

```

My question is, how can I make it direct to another page that’s formatted and works with my design, rather than just display the default unformatted text echo? Any help would be appreciated!

-Filmguy
