phpfreakjav Posted June 5, 2009 Share Posted June 5, 2009 var sender = new LoadVars(); sender.SOMEVALUE= "xxx"; sender.send("http://localhost/crazy_experiments/biomed/results.php", "", "POST"); How do I check that the SOMEVALUE was sent? Would this work? <?php $x =$_POST['SOMEVALUE']; //????? ?> Quote Link to comment https://forums.phpfreaks.com/topic/161111-loadvars-how-to-accept-value-in-php/ Share on other sites More sharing options...
phpfreakjav Posted June 5, 2009 Author Share Posted June 5, 2009 By the way when I use the code above I get a new window in firefox and the url says http://localhost/crazy_experiments/biomed/results.php?xy=xxx NOTE THAT THE xxx is the variable I sent through flash but now I cant get it to be a variable in php! how can I get xy to be a variable in php Quote Link to comment https://forums.phpfreaks.com/topic/161111-loadvars-how-to-accept-value-in-php/#findComment-850246 Share on other sites More sharing options...
DarkSuperHero Posted June 6, 2009 Share Posted June 6, 2009 var msg:LoadVars = new LoadVars(); var msgSent:LoadVars = new LoadVars(); msg.var1 = "one"; msg.var2 = "two"; msgSent.onLoad = function($success:Boolean):Void { if ($success) { trace("Message sent."); } else { trace("Message failed."); } }; msg.sendAndLoad("http://www.reintroducing.com/script.php", msgSent); try that.... Here's where i got it... http://evolve.reintroducing.com/2008/01/27/as2-to-as3/as2-→-as3-loadvars-as3-equivalent/ if you have any questions i can try and explain.... Cheers! Quote Link to comment https://forums.phpfreaks.com/topic/161111-loadvars-how-to-accept-value-in-php/#findComment-850368 Share on other sites More sharing options...
phpfreakjav Posted August 1, 2009 Author Share Posted August 1, 2009 Thank you solved! Quote Link to comment https://forums.phpfreaks.com/topic/161111-loadvars-how-to-accept-value-in-php/#findComment-888400 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.