|
-
Hey peeps,I am in the process of writing a simple script that uses the new LoadVars obj, in MX. I figured this would be fairly easy and so far I have found myself beating my head against the monitor on this.....
First I have 2 txt fields. (uField, pField)
then I have this:
connect=new LoadVars()
connect.onLoad=function(){ _root.displayField=pResult //pResult is the var kicked back from the php script
}
connect.fUser=_root.uField.text
connect.fPass=_root.uPass.text
connect.sendAndLoad("/scripts/login.php",connect)
<code end>--------------------------------------------------------------
Now, to the best of my knowledge, the flash vars (fUser, and fPass) never get into the php script. What am I doing wrong?.. at the beginging of the PHP script I have an "if" statement to check if the fUser vcar is there.... and it isn't!like this:
if(!$fUser){$pError="no flash var in";
echo $pError;
exit;
};
anyone have any ideas? Any help would be awsome. Thanks!!!!!Sum
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|