What Is wrong with my PHP mail coding?

stu

New member
in my flash website frame there is this coding " import flash.net.URLVariables;
import flash.net.URLRequest;

InteractiveObject(TheName.getChildAt(1)).tabIndex =1;
InteractiveObject(TheEmail.getChildAt(1)).tabIndex =2;
InteractiveObject(TheMessage.getChildAt(1)).tabIndex =3;

Sned_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);

function fl_MouseClickHandler(event:MouseEvent):void
{


if (TheName.text == "" || TheEmail.text == "" || TheMessage.text == "")
{
TheFeedBack.text = "please fill out all fields";
}
else
{
// Create a Variable Container
var allVars:URLVariables = new URLVariables();
allVars.name = TheName.text;
allVars.email = TheEmail.text;
allVars.message = TheMessage.text;


// Send info to a url
var mailAddress:URLRequest = new URLRequest("//URL WHERE MAIL PHP IS");
mailAddress.data = allVars;
mailAddress.method = URLRequestMethod.POST;
sendToURL(mailAddress);
TheFeedBack.text = "Thank You";
TheName.text = "";
TheEmail.text = "";
TheMessage.text = "";
}


}"

in my mail php there is this coding
<?php

$TheName = $_REQUEST["TheName"];
$TheEmail = $_REQUEST["TheEmail"];
$TheMessage = $_REQUEST["TheMessage"];
$allVars = $_REQUEST["AllVars"];

$to = "//MY EMAIL ADD//";
$subject = "Contact Form Website";
$full_msg = "From TheName: " . $TheName . "\n From TheEmail: " . $TheEmail . "\n TheMessage: " . $TheMessage . "\n TheInfo: " . $allVars;

$ok= mail($to, $subject, $full_msg);

?>"

where am i going wrong this is driving me up the wall, the // are quotes i've put in to take out the data which is already there but im sure all coders know this, please help its making me bonkers
Well i've got a flash website with a contact us page, the fields it requires is name, email and message. im trying to export the user imputed data and send it to my email address using php. so i want the flash code to export the data inputed from the user. and i want the php to grab the data sent from the flash so it can email it to my email address
 
Back
Top