I’m trying to use the following code to make a flash contact form to load data into a file called mail.php.
Here is the code in .fla file:
[COLOR=DarkRed]on (release)
{
this._parent.loadVariables(“mail.php”, “POST”);
}[/COLOR]
And in php file
[COLOR=DarkRed] $name = $_REQUEST[“name”];
$email = $_REQUEST[“email”];
$phone = $_REQUEST[“phone”];
$message = $_REQUEST[“message”];
$message = stripslashes($message);
$phone = stripslashes($phone);
$email = stripslashes($email);
$name = stripslashes($name);
// add a prefix in the subject line so that you know the email was sent by online form
$message = “Mail from website’s contact form :”. $message;
// send the email, make sure you replace email@yourserver.com with your email address
if(isset($name) and isset($email) and isset($sender) and isset($sender)){
mail("smth@hotmail.com", $name, $phone, $message, “From:”, $email);
}?>[/COLOR]
Both files, .swf and .php, are in the same folder. I must be doing smth wrong cause nothing realy happens. No email ever arrives to my email address.
Any help would be great!!!