Okay I have this flash/php email form here:
It works like a charm on my pc, but everyone else I talk to says it doesnt work? Is there some sort of security settings on flash that might be doing this? I’ll also post my code. I am totally lost on why this isnt working.
thanks
code:
import mx.transitions.Tween;
import mx.transitions.easing.*;
stop();
var senderLoad:LoadVars = new LoadVars();
var receiveLoad:LoadVars = new LoadVars();
emailform.submit.onRelease = function() {
senderLoad.name1 = _root.emailform.one.text;
senderLoad.email1 = _root.emailform.two.text;
senderLoad.name2 = _root.emailform.three.text;
senderLoad.email2 = _root.emailform.four.text;
senderLoad.sendAndLoad("http://coldcoffeeamerica.com/email.php",receiveLoad);
}
receiveLoad.onLoad = function() {
var alphaup2:Tween = new Tween(_root.emailform.submit, "_alpha", Strong.easeOut, 100, 0, .5, true);
var alphaup:Tween = new Tween(_root.confirm, "_alpha", Strong.easeOut, 0, 100, 1, true);
var confirm:Tween = new Tween(_root.confirm, "_y", Elastic.easeOut, 233, 62, 1, true);
}
_root.confirm.done.onRelease = function() {
_root.emailform.one.text = '';
_root.emailform.two.text = '';
_root.emailform.three.text = '';
_root.emailform.four.text = '';
var alphaup2:Tween = new Tween(_root.emailform.submit, "_alpha", Strong.easeOut, 0, 100, .5, true);
var alphaup:Tween = new Tween(_root.confirm, "_alpha", Strong.easeOut, 90, 0, 1, true);
var confirm:Tween = new Tween(_root.confirm, "_y", Strong.easeOut, 62, 233, .5, true);
}
<?php
$one = $_POST['name2'];
$two = $_POST['name1'];
$three = $_POST['email1'];
$four = $_POST['email2'];
$headers = "From: $two"."
";
$headers .= 'X-Mailer: PHP/'.phpversion()."
";
$headers .= 'MIME-Version: 1.0'."
";
$headers .= 'Content-type: text/html; charset=iso-8859-1';
$subject = "Cold Coffee America";
$body = "
<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">
<html xmlns=\"http://www.w3.org/1999/xhtml\">
<head>
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\" />
<title>Sum Designers</title>
<style type=\"text/css\">
<!--
body { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; color: #333333; }
.boldpink { color: #E441AA; font-weight: bold; }
ul { margin: 0px; padding: 0px; }
li { margin: 0px; padding: 0px; list-style: none; }
.paddedli { padding: 10px 0px 10px 0px; }
-->
</style>
</head>
<body>
$one, I just came across this great business concept. I thought you may be interested in knowing about it, since it is unique and part of a massive trend.
<br /><br />Check out the information for yourself at
<a href=\"www.coldcoffeeamerica.com\">www.coldcoffeeamerica.com</a><br /><br />$two</body></html>";
mail($four, $subject, $body, $headers);
?>