Hi!
Im facing this problem thats really driving me nuts. Please, have a look in the following actionscript code::
var gets = new LoadVars();
var sends = new LoadVars();
sends.something = "test";
sends.sendAndLoad('http://localhost/test/test.php?rand='+getTimer(), gets, "POST");
gets.onLoad = function(Success:Boolean){
if(Success){
texto.text = gets.php_test;
}
}
…and the php code:
<?php
$varia = $_POST['something'];
print "php_test=".$varia;
?>
Pretty simple, dont you agree? But it doesnt work and I really cant see why. Im really new to php, so, maybe some problem with the code perhaps?