Need to post $file_name in the js below to video.php then pop up a defined window with the video. I think I did this once but can't find it.
Thanks
main.php
<script type="text/javascript">
function submit()
{
var wind = window.open("video.php?filename=" + document.form1.file_name.value , "", "toolbar=no, location=no, directories=no, status=no, menubar=no, resizable=yes, width=350, height=350");
}
</script>
</head>
<body>
<div class='cell_l'>
<form id="form1" name="form1" method="post" action="video.php">
<input type="hidden" name="file_name" value="bob_nick.wmv">
<img class="thumb" src="img/bob_nick.jpg" onClick="submit();"></form>
</div>
video.php
<?php
$file_name = $_POST["file_name"];
echo '<html>
<body style="background-color: #000000; text-align:center">
<object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="videos/$file_name">
<param name="showstatusbar" value="1">
<param name="controltype" value="1">
<param name="showcontrols" value="1">
<param name="AutoStart" value="1">
</object>
</body>
</html>';
?>