Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get from php

Status
Not open for further replies.

JonnyPT

Programmer
Joined
Oct 27, 2004
Messages
21
Location
US
i need the actionscript necessary to retrieve vars passed from php

i use
this.loadVariables("load.php","POST");
mydate = thisdate; // thisdate being a var passed from the php

it presents "UNDEFINED" in the "mydate" textbox

my php output looks like this "&thisdate=09-28-2004"

WHAT AM I DOING WRONG?
 
You're not giving the movie enough time to receive the variables back fromn the PHP script before you're trying top read them, and your loadVariables() is missing a third parameter. Try this instead:

Code:
lv=new LoadVars();
lv.onLoad=function(){
mydate=this.thisDate;
}
lv.sendAndLoad('load.php',lv,'post');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top