Why wont print php $t in swf

Hi

i want to print a “sent” in my swf dynamic text box called t

why won’t this work
the code in flash is

loadVariablesNum(“send.php”, “0”, “GET”);

and my php file called “sent.php”
has this in it

print “sent=$t”

why wont this work?

thanks

Andrew

that’s wrong. try

print 't=sent';

and

loadVariables("send.php", this);

print “sent=$t”
will not work coz you try to print a variable, $t, which is undefined,
it should be the other way round:
print “&t = sent”; (with the semicolon)…

Actually, I think ‘sent’ is the variable he’s trying to print to Flash. And I’ve printed in PHP a few different ways, this one’s my fav:


print "&sent=".$t;

Ahmed, why wouldn’t you use loadVariablesNum? I’m using that for my PHP stuff, should I be using a different way??

And Andrew, one other thing (in case you don’t do this). I usually will run the PHP in the browser to see if the variable’s printing at all before trying to have a Flash object read it - easier to find bugs that way! (-:

*Originally posted by Freddythunder *
Ahmed, why wouldn’t you use loadVariablesNum? I’m using that for my PHP stuff, should I be using a different way??
It’s really just a personal preference, and actually, i don’t even use loadVariables anymore, i use LoadVars :slight_smile:

Good, I hate screwing up my stuff!! :stuck_out_tongue: