videobus Posted March 6, 2007 Posted March 6, 2007 I'm trying to figure out the correct way of passing $filename to an html value as below: <td> <OBJECT id='mediaPlayer' width="320" height="285" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701' standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject'> <param name='fileName' [b]value="<?php echo $filename; ?>"[/b]> <param name='animationatStart' value='true'> <param name='transparentatStart' value='true'> <param name='autoStart' value="false"> <param name='showControls' value="true"> <param name='loop' value="false"> <EMBED type='application/x-mplayer2' pluginspage='http://microsoft.com/windows/mediaplayer/en/download/' id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' bgcolor='darkblue' showcontrols="true" showtracker='-1' showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285" src="video/devil_wears_prada_the.wmv" autostart="false" designtimesp='5311' loop="false"> </EMBED> </OBJECT> </td> <?php The way it is does not work. Any help would be appreciated.
davidinottawa Posted March 6, 2007 Posted March 6, 2007 I'm trying to figure out the correct way of passing $filename to an html value as below: <param name='fileName' value="<?php echo $filename; ?>"> Your code is correct - but you haven't shown us the important part - how $filename is created. Show us how your php is populating and registering the $filename variable. david
jasonabc Posted March 6, 2007 Posted March 6, 2007 You can read in a PHP variable into HTML easily enough - but David is correct when he says that you need to show us where/how that variable is declared... Jason My Contributions: Paypal Payflow PRO | Rollover Category Images | Authorize.net Invoice Number Fix
Recommended Posts
Archived
This topic is now archived and is closed to further replies.