# Contact page and mail.php problem

**URL:** https://forum.kirupa.com/t/contact-page-and-mail-php-problem/312598
**Category:** Uncategorized
**Created:** [August 8, 2010, 3:18pm UTC](https://forum.kirupa.com/t/contact-page-and-mail-php-problem/312598 "2010-08-08T15:18:58Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jevous](https://avatars.discourse-cdn.com/v4/letter/j/c2a13f/32.png) [@jevous](https://forum.kirupa.com/u/jevous)
#### Post date: [August 8, 2010, 3:18pm UTC](https://forum.kirupa.com/t/contact-page-and-mail-php-problem/312598/1 "2010-08-08T15:18:58Z")

</div>

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](mailto: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!!!
