View Full Version : why wont print php $t in swf
andrew1234
August 1st, 2003, 09:31 AM
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
ahmed
August 1st, 2003, 10:32 AM
that's wrong. try
print 't=sent';and
loadVariables("send.php", this);
eyezberg
August 1st, 2003, 01:13 PM
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)..
Freddythunder
August 3rd, 2003, 10:50 AM
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! (-:
ahmed
August 3rd, 2003, 02:31 PM
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 :)
Freddythunder
August 3rd, 2003, 02:43 PM
Good, I hate screwing up my stuff!! :P
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.