Jump to content

Recommended Posts

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.