# Simple Question PLS help!

**URL:** <https://forum.kirupa.com/t/simple-question-pls-help/187207>\
**Category:** Uncategorized\
**Created:** [April 27, 2006, 1:20pm UTC](https://forum.kirupa.com/t/simple-question-pls-help/187207 "2006-04-27T13:20:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![camaleon](https://avatars.discourse-cdn.com/v4/letter/c/e36b37/32.png) [@camaleon](https://forum.kirupa.com/u/camaleon)\
**Post date:** [April 27, 2006, 1:20pm UTC](https://forum.kirupa.com/t/simple-question-pls-help/187207/1 "2006-04-27T13:20:29Z")

</div>

hi guys.

## well i have this code in php (a feedback), work perfect but when send the message to the mail in the page say. “thanks for send us a message” in a echo.

## i just want that when the script send me the mail, goto a page called mail.html

```php
<?PHP 
$to = mymail@123.comy; 
$subject = "web form";
$headers = "From: domain.com";
$forward = 0;
$location = "www.domain.com";
$date = date ("l, F jS, Y"); 
$time = date ("h:i A"); 
 
$msg = "webform. was send on $date at $time.

"; 
if ($_SERVER['REQUEST_METHOD'] == "POST") {
foreach ($_POST as $key => $value) { 
$msg .= ucfirst ($key) ." : ". $value . "
"; 
}
}
else {
foreach ($_GET as $key => $value) { 
$msg .= ucfirst ($key) ." : ". $value . "
"; 
}
}
mail($to, $subject, $msg, $headers); 
if ($forward == 1) { 
header ("Location:$location"); 
} 
else { 
echo "thanks for send us a message."; 
} 
?>

```

regards.
