Im trying to get a php variable to pass through a flash form which actionscript is shown here:
on (release) {
myVars = new LoadVars();
myVars.load(" [url]http://www.myurl.com/members/test.php[/url] ")
//create the LoadVars that will hold our paypal information
var paypal = new LoadVars();
//specify the business, amount of the item, shipping, etc.
paypal.cmd="_xclick";
paypal.business=" [email]ikonpr_1195618222_biz@gmail.com[/email]";
paypal.currency_code="USD";
paypal.amount="67.00";
paypal.item_name="Test Book";
paypal.no_shipping="1";
paypal["return"]="http://www.myurl.us/purchase/success.php";
paypal.cancel_return=" http://www.myurl.us/purchase/cancel.php";
paypal.custom=myVars.custom;
//send information to PayPal
paypal.send("https://www.sandbox.paypal.com/cgi-bin/webscr ","POST");
}
In my test.php file I have the following:
$test = "sexy";
// TEST THE LOADVARS FOR FLASH - to pass passkey through to paypal.
$var = " " ;
$var .= "custom=" . $test . "";
$custom = $var;
echo $custom;
echo $var;
All the other variables go to paypal correctly and post back to IPN except for the custom field that I cant get.. PLEASE HELP...