(php) retrieving url variable

I am working on a site with lots of videos, but i only want to use one file. I want it to leave the SRC as a variable and load the file variable from the url, like: videoplayer.php?file=file.wmv … can anyone help me with how to do this?

if you have like stated above ?file=file.wmv

use the following to fetch it.


#$_GET['file']
echo $_GET['file']; #will return file.wmv

yeah i can get that, but how would i put it into the video code? something like


<?php

#$_GET['file'] 

<object id="player" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="240" height="200">
<param name="AutoStart" value="true">
<param name="uiMode" value="full">
<param name="URL" value="echo $_GET['file'];">
</object>

?>

im not too good with integrating html and php, so im not sure about that part

It should look something like this:


<object id="player" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="240" height="200">
<param name="AutoStart" value="true">
<param name="uiMode" value="full">
<param name="URL" value="<?php echo $_GET['file']; ?>">
</object>

thank you very much

here if my test file: http://www.muniz.hebronix.com/board/videoplayer_win.php?file=http://hebronix.com/video/Emmett.WMV

thank you very much

here is my test file: http://www.muniz.hebronix.com/board/videoplayer_win.php?file=http://hebronix.com/video/Emmett.WMV&info=test%20successful!%20yay!&title=Emmett%20blah%20blah%20blah

the description, title of page, and video file are all defined by the url, thanks guys!