# SendAndLoad Problem

**URL:** <https://forum.kirupa.com/t/sendandload-problem/289443>\
**Category:** flash\
**Created:** [May 30, 2009, 12:42pm UTC](https://forum.kirupa.com/t/sendandload-problem/289443 "2009-05-30T12:42:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![purin](https://avatars.discourse-cdn.com/v4/letter/p/3e96dc/32.png) [@purin](https://forum.kirupa.com/u/purin)\
**Post date:** [May 30, 2009, 12:42pm UTC](https://forum.kirupa.com/t/sendandload-problem/289443/1 "2009-05-30T12:42:55Z")

</div>

I simply used loadVars class, but seems like it can’t pass the parameter to PHP.

_PHP_  
\<?  
echo"xx=$a&yy=5";  
?\>

\*ActionScript \*  
myVar=new LoadVars();  
myVar.a=1;  
myVar.onLoad = function(success){  
if(success){  
trace(myVar.xx+" "+myVar.yy);  
}  
}  
myVar.sendAndLoad(“test.php”,myVar,“post”);

I have tried this script on two servers.  
the output from the first one was ‘1 5’, but the other came out ’ 5’.  
which means the parameter ‘myVar.a=1’ didn’t pass to PHP.

So what’s wrong with the script or the second server.  
Does anyone know how can I fix this problem?  
Thanks.
