Page 1 of 1

loading php vars in flash

Posted: Tue Jul 01, 2003 6:47 pm
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

Posted: Thu Jul 03, 2003 10:58 am
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

Posted: Thu Jul 03, 2003 11:10 am
by m3mn0n
It's good that you came and posted an answer you found yourself.



btw welcome to the community. 8)

Posted: Mon Jul 07, 2003 5:19 pm
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.

Posted: Mon Jul 07, 2003 7:17 pm
by Judas
Use action csript to interact with your cgi.