gwolff2005 Posted April 19, 2009 Share Posted April 19, 2009 Hi guys, I have a personalized member site. Dependend on the members status I want them to see either a swf movie or a database. Now I created the swf file but how can I embed now the file in php. I hink this is completely wrong..... This is my code: if (empty($_SESSION['MM_resultsmo'])) { echo '<param name="movie" value="intro.swf">'; } else { echo " " . $_SESSION['MM_resultsmo']; } ?> Link to comment https://forums.phpfreaks.com/topic/154761-embedded-swf-file-in-php/ Share on other sites More sharing options...
DarkSuperHero Posted April 19, 2009 Share Posted April 19, 2009 looks right... except you would probably use <object width="550" height="400"> <param name="movie" value="somefilename.swf"> <embed src="somefilename.swf" width="550" height="400"> </embed> </object> to embed your movie..... <?php if (empty($_SESSION['MM_resultsmo'])) { echo '<object width="550" height="400"> <param name="movie" value="somefilename.swf"> <embed src="somefilename.swf" width="550" height="400"> </embed> </object>'; } else { echo $_SESSION['MM_resultsmo']; } ?> Link to comment https://forums.phpfreaks.com/topic/154761-embedded-swf-file-in-php/#findComment-813850 Share on other sites More sharing options...
gwolff2005 Posted April 19, 2009 Author Share Posted April 19, 2009 Hey great it works!!! Thank you so much!! Link to comment https://forums.phpfreaks.com/topic/154761-embedded-swf-file-in-php/#findComment-813985 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.