ok Problem Fixed This is the code for flash and for php if anyone is having same problems
My Flash Code looks like this
on (rollOver)
{
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut)
{
this.gotoAndPlay("s2");
}
on (release)
{
if (parent.t1 eq "" or parent.t2 eq "" or parent.t3 eq "" or parent.t4 eq "") {
stop ();
} else {
varSender = new LoadVars();
varSender.t1_2 = parent.t1.text;
varSender.t2_2 = parent.t2.text;
varSender.t3_2 = parent.t3.text;
varSender.t4_2 = parent.t4.text;
}
varSender.send("processEmail.php", "_blank", "POST");
}
And my processEmail.php looks like this
<?php
$your_name = $POST['t1_2'];
$your_email = $POST['t2_2'];
$your_phone = $POST['t3_2'];
$your_message = $POST['t4_2'];
$recipient = 'me@myemail.com'; // put your email addy here
$subject = 'Someone has submited your form';
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\nContent-Transfer-Encoding: 8bit\r\n";
$content = "<html><head><title>Breez Designs Contact Form</title></head><body><br />";
$content .= "Name: <b>" . $your_name . "</b><br />";
$content .= "E-mail: <b>" . $your_email . "</b><br />";
$content .= "Phone: <b>" . $your_phone ."</b><br /><hr /><br />";
$content .= $your_message;
$content .= "<br /></body>";
// The mail() function allows you to send mail.
mail($recipient,$subject,$content,$headers);
?>
<html>
<body bgcolor="#282E2C">
<div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;
font-family:Tahoma;font-weight:bold">
Your message was sent. Thank you.
</div>
</body>
</html>
<script>resizeTo(300, 300)</script>
"Phone: <b>" . $your_phone .[/COLOR]
Good Luck everyone and thanks for the help 🙂