output is “error” even i send “hello”. what is the problem here?**
actionscript**
function dothis() {
sv = new LoadVars();
rv = new LoadVars();
sv.v1 = "hello";
sv.sendAndLoad("newsletter.php", rv);
rv.onLoad = function(obj) {
trace(rv.var1);
};
}
**
php
**
$var1=$_POST["v1"];
if($var1=="hello") echo "&var1=ok&"; else echo "&var1=error&";