Displaying .swf file from a user input
Hi all,
I am having an issue displaying .swf files all of which are located on my server.
Background:
I have a small form which allows a user to enter a 4 digit number, click on submit and display a .swf file (a small map). I have an sql query that looks up the user entered number and return the file name associated with the number.
I can echo out the query result which is correct.
I then use a PHP var in side the code below to display the require .swf file.
Foir some reason this is not working. Can anyone see what or where I am going wrong.
Code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','1100','height','800','src','<?php echo $flashFileID;?>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','<?php echo $flashFileID;?>' ); //end AC code
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="1100" height="800">
<param name="movie" value="<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>" />
<param name="quality" value="high" />
<embed src="<?php echo $roomPath."".$row_RoomLocator['flashfile'];?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="1100" height="800"></embed>
</object>
</noscript>
Many thanks for any help you can provide.
Cheers,
Dereck