TheLostGuru Posted June 8, 2007 Share Posted June 8, 2007 I have a swf file which I have embedded in a php file. I will attach my code so I can explain echo '<table width="242" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td align="center"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="242" height="242"> <param name="movie" value="http://tlgames.siteburg.com/welcome.swf[b]?oid =<?php $_oid ?>" >[/b] <param name=quality value=high > <embed src="http://tlgames.siteburg.com/welcome.swf[b]?oid=<?php $_oid ?>[/b]" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="242" height="242"></embed> </object> </td> </tr> </table>'; The bolded parts are what I want you to look at. My flash file is receiving the variable 'oid' but instead of receiving the value of the php variable $_oid, it receives the value of the string "<?php $_oid ?>. How do I make it so the php file sends the variable value and not the string? Link to comment https://forums.phpfreaks.com/topic/54775-sending-a-variable-through-flashvars/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.