# Help me, this its easy 4 you

**URL:** <https://forum.kirupa.com/t/help-me-this-its-easy-4-you/86230>\
**Category:** Uncategorized\
**Created:** [April 11, 2005, 1:31pm UTC](https://forum.kirupa.com/t/help-me-this-its-easy-4-you/86230 "2005-04-11T13:31:28Z")\
**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 11, 2005, 1:31pm UTC](https://forum.kirupa.com/t/help-me-this-its-easy-4-you/86230/1 "2005-04-11T13:31:28Z")

</div>

hi guys!

well i dont know so much of php, but i have a code that send mail form the web. just that i want that this code when i send the email DON’T show a new page that say (( thanks. )) i want that when i push the button SEND just CLEAR all the textfield and send the message.

thanks!

## code:

\<?PHP  
$to = “[any@any.com](mailto:any@any.com)”;  
$subject = “Webpage”;  
$headers = “From: my page”;  
$forward = 0;  
$location = “[hi](http://www.gbs-global.com)”;  
$date = date (“l, F jS, Y”);  
$time = date (“h:i A”);

$msg = "new webpage message en 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.”;  
}

## ?\>
