sorry for the bad joke there, im sure thats never been used in this forum. haha
i have a flash file, has a simple $_POST form in there that calls out a .php form outside of the .swf file.
what i dont get is that this script was working for a week, and then nothing but errors. i have since realized that my syntax is off. i am not all that savay in php, and truth be told i am learning as i go. so with this code, i get "Undefined index" and "Undefined variable" errors, but what am i doing wrong? i do get an email with the content, but nothing in it. im lost.
HELP!
<?
//specifies who the email is sent too, the name and subject line
$ToEmail = "my@eamil.com";
$ToName = "to me";
$ToSubject = "website contact";
// what the email body is and converts flash variables to php variables and sets them up for the email
$EmailBody = "name: {$_GET['name']} \n email: {$_GET['email']} \n message: {$_GET['message']}";
//combines the variable to a message
$Message = $EmailBody;
//mail: sends the form with variable called from header above and From: the variables in the form
mail($ToEmail, $ToSubject, $Message, "From: ".$name." <".$email.">");
//error code
if(!@mail){
echo "error";
} else {
echo "sent";
}
?>