# Email form using PHP - Help

**URL:** https://forum.kirupa.com/t/email-form-using-php-help/215357
**Category:** flash
**Created:** [February 6, 2007, 6:26pm UTC](https://forum.kirupa.com/t/email-form-using-php-help/215357 "2007-02-06T18:26:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![thehive](https://avatars.discourse-cdn.com/v4/letter/t/50afbb/32.png) [@thehive](https://forum.kirupa.com/u/thehive)
#### Post date: [February 6, 2007, 6:26pm UTC](https://forum.kirupa.com/t/email-form-using-php-help/215357/1 "2007-02-06T18:26:54Z")

</div>

I have created a flash form with 3 input text boxes with variable names “name”, “email” and “content”.

I’d like to have the information sent to an email address when the user clicks the submit button. So far nothing seems to working.

Here is the PHP code I have used:

\<?php  
$sendTo = "myname@mysite.com";  
$subject = “Response from My Site”;

$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];  
$message = $\_POST[“content”];

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