<?php
if( (isset($_POST['url'])) && (isset($_POST['title'])) && (isset($_POST['autoplay'])) )
{
if($_POST['autoplay'] == 'yes')
{
$autoplay_value = "true";
}
else
{
$autoplay_value = "false";
}
$flash_link = "http://server01/test/musicplayer.swf?mp3url=".$_POST['url']."&txt=".$_POST['title']."&autoplay=".$autoplay_value;
?>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"
width="<?php echo $flash_width; ?>" height="22" id="myaudio">
<param name="movie" value="<?php echo $flash_link; ?>" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="<?php echo $flash_link; ?>" quality="high" bgcolor="#ffffff" width="<?php echo $flash_width; ?>" height="22"
name="myaudio" align="" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</object>
<?php
}
?>
No comments:
Post a Comment