# PHP Mail form - Simple but troublesome

**URL:** <https://forum.kirupa.com/t/php-mail-form-simple-but-troublesome/196359>\
**Category:** programming\
**Created:** [August 7, 2006, 10:00pm UTC](https://forum.kirupa.com/t/php-mail-form-simple-but-troublesome/196359 "2006-08-07T22:00:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Waiter](https://avatars.discourse-cdn.com/v4/letter/t/74df32/32.png) [@The\_Waiter](https://forum.kirupa.com/u/The_Waiter)\
**Post date:** [August 7, 2006, 10:00pm UTC](https://forum.kirupa.com/t/php-mail-form-simple-but-troublesome/196359/1 "2006-08-07T22:00:26Z")

</div>

OK - I didn’t want to post my email the first time but I guess I already get loads of spam so a bit more can’t hurt - I just want this naughty PHP thing to work:

PHP code is:

\<?php  
$sendTo = "tantrumfantasies@yahoo.com";  
$subject = “Everyday Photography”;  
$headers = "From: " . $\_POST[“name”];  
$headers .= “\<” . $\_POST[“email”] . "\>  
";  
$headers .= "Reply-To: " . $\_POST[“email”] . "  
";  
$headers .= "Return-Path: " . $\_POST[“email”];  
$message = $\_POST[“message”];  
mail($sendTo, $subject, $message, $headers);  
?\>

Submit button code in flash is:

on (release) {  
form.loadVariables(“email.php”, “POST”);  
}

Code on ‘form’ movie is:

onClipEvent(data){  
\_root.nextFrame();  
}

Does anyone see anything wrong with this now?  
I reckon it’s fine - my variables are marked correctly within my ‘form’ movie…  
the only thing I think could possibly be poo about my set-up is the flash code is all within another movie titled ‘form\_page’ instead of sitting on the main stage.

I test it and the mail never arrives.
