Sending Flash form to php that is not in _root

Using your sample form (flash form to php) as a guide, I’m trying to send a flash form that is not in the _root. It is: Scene/Movie Clip/Movie Clip level. On an instance of the form I have the code (note- I changed frame to gotoAndPlay(2)):

onClipEvent (data) {

on an instance of the send button I have:

on (release) {
form.loadVariables("email.php", "POST");

My form still refuses to send or go to the thank you page. I am only a very basic script user and could use any advise. I do have the php uploaded to the same area as the flash and html files.


$sendTo = "[email protected]";
$subject = "My Flash site reply";
$headers = "From: " . $_POST["firstName"] ." ". $_POST["lastname"] . "<" . $_POST["email"] .">
$headers .= "Reply-To: " . $_POST["email"] . "
$headers .= "Return-path: " . $_POST["email"];
mail($sendTo, $subject, $message, $headers);