Jump to content

embedded swf file in php


gwolff2005

Recommended Posts

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

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'];
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.