Forum Moderators: coopster
function goVideo(vname){
vpath = "videos/" + vname;
theURL = "video.php?id=" + vpath;
window.open(theURL,'vid','toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no,width=620,height=256');
}
In video.php I have these lines of code:
$vfile = $id;
echo '<PARAM NAME="src" VALUE="'.$vfile.'">';
This doesn't work. When viewing the HTML source of the page the line above is:
<PARAM NAME="src" VALUE="">
However, if I change $vfile = $id to $vfile = "path/file.mov" it works fine. Hmmmmmm...
Thanks,
Steve
Why:
You can start here [php.net].
But basically, any variables in the URL are accessed from /contained in the $_GET superglobal, which is an array that holds those values ('Getting' the values from the HTTP header).
So, for example in
www.mysite.com?id=WebmasterWorld&what=rocks
$_GET[id] = WebmasterWorld
$_GET[what] = rocks