hey is it possible to pass a variable through to PHP and onto an email???
kinda like
var name_var = "myname";
var location_var = "where im at";
send_button.onRelease = function()
{
var formData:LoadVars = new LoadVars();
var formData.name = name_var;
var formData.location = location_var;
formData.sendAndLoad("http://www.mysite.com/contact_process.php",_blank,"POST");
formData.onLoad = function()
{
if(formData.message_sent == "ok")
{
gotoAndStop(2);
}
else
{
gotoAndStop(3);
}
}
}
<?php
// Send the message
$mailfrom="<$_POST[email]>";
$email=blah@mysite.com;
$subject="order form ";
Location:$_POST[location]<br><br>[name]
$headers = "MIME-Version: 1.0
";
$headers .= "Content-type: text/html; charset=iso-8859-1
";
$headers .= "From: ". $mailfrom."
";
mail($email,$subject,$data,$headers);
echo "message_sent=ok";
?>
I just threw this together from others.
I guess i might as well test it.
[COLOR=#0000bb][FONT=Courier New]$data[/FONT][/COLOR]
Where is this php variable set or is it global to all the data passed??