i have been able to get this to work using the geturl() but not with the loadvars object. trace prints what i would expect to see.
here is the code in my flash button.
code:
on (release) {
submit = new LoadVars();
submit.returnAddress = txt1.text;
submit.messageBody = txt2.text;
if (submit.returnAddress.length && submit.returnAddress.indexOf("@") != -1 && submit.returnAddress.indexOf(".") != -1 && submit.messageBody.length) {
sumbit.send("http://www.webaddresshere.com/submit.php","_blank","POST");
trace(submit);
}
}
and my php
PHP Code:<?php
$toAddress="[email protected]";
$subject="Message From Website";
$returnAddress=$HTTP_POST_VARS[returnAddress];
$message=$HTTP_POST_VARS[messageBody];
mail($toAddress, $subject, $message, "From:$returnAddress\r\n");
?>




Reply With Quote