loading php vars in flash

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
coffeyesplease
Forum Newbie
Posts: 2
Joined: Tue Jul 01, 2003 6:47 pm

loading php vars in flash

Post by coffeyesplease »

hi there good people,
i'm trying to find a way to get flash and php&mySql working together and more or less figured out most of it, except when it comes to send the vars from php to flash, and it's driving me insane.....
<?
.......
$row = mysql_fetch_array($stmt);
$strn = "&n&name=".$row['name']."&surname=".$row['surname']."&";
echo $strn;
?>
and what happens is that flash for the &name parameter outputs - $row['name'] - instead of the of the value contained in that array position.
i've checked and double checked php output and it's correct, and even tried hard-code it, as in:
<?
echo "&n&name=wilson&surname=edgar&";
?>
and this works just fine... the output in flash is as it's supposed to be.
does anyone knows why??? and how can i solve?
pointers are more than welcomed.
thanks in advance for your time
coffeyesplease
Forum Newbie
Posts: 2
Joined: Tue Jul 01, 2003 6:47 pm

Post by coffeyesplease »

hi, well i've solved the problem when i found this open source implementation of flash remoting.
http://cabron.sourceforge.net
it still doesn't answer my question directly, but it solved my problem.
apart from quite funny name, it seems to be working o.k, i've only been using it for 24 hours, so don't take this as the most valid and experienced opinion, just my 2 cents.
take care
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

It's good that you came and posted an answer you found yourself.



btw welcome to the community. 8)
mk
Forum Newbie
Posts: 5
Joined: Mon Jul 07, 2003 4:56 pm

Post by mk »

I haven't checked out Cabron yet, but I've heard great things about AMFPHP (http://www.amfphp.org).

Haven't gotten around to toying with Flash Remoting yet, but I plan to in the near future. Let me know how it works for you.
Judas
Forum Commoner
Posts: 67
Joined: Tue Jun 10, 2003 3:34 pm
Location: Netherlands

Post by Judas »

Use action csript to interact with your cgi.
Post Reply