Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help needed to mix html and php passed parameters


videobus

Recommended Posts

Posted

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.

Posted
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

Archived

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

×
×
  • Create New...