# Contact form using php

**URL:** <https://forum.kirupa.com/t/contact-form-using-php/167042>\
**Category:** Uncategorized\
**Created:** [October 25, 2005, 12:04am UTC](https://forum.kirupa.com/t/contact-form-using-php/167042 "2005-10-25T00:04:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![love\_police](https://avatars.discourse-cdn.com/v4/letter/l/c57346/32.png) [@love\_police](https://forum.kirupa.com/u/love_police)\
**Post date:** [October 25, 2005, 12:04am UTC](https://forum.kirupa.com/t/contact-form-using-php/167042/1 "2005-10-25T00:04:43Z")

</div>

ok, so i’ve made this contact form based on the tutorial on kirupa’s site with flash but i’ve just used the php side of it.

```php
<?php
$sendTo = "emailaddress";
$subject = "From mail: " . $_POST["subject"];

$headers = "From: " . $_POST["author"];
$headers .= "<" . $_POST["email"] . ">
";
$headers .= "Reply-To: " . $_POST["email"] . "
";
$headers .= "Return-Path: " . $_POST["email"];
$message = $_POST["text"];

mail($sendTo, $subject, $message, $headers);
?>

```

i got it workin no probs, what i want to do is when it’s done its business i want to return it back to a page saying that it has sent the message on…

how would i do that… i’ve looked around a bit, and only being a noob at php, a big noob, i couldnt really find something that i would know that would work…

your help would be great! thanks 😃 :thumb:
