embedding video

i have a script that use to work but now it needs to be change to use the new video tag of html5
i tried replacing the marked(starting at line 16 ending at line 30) code with

Your browser does not support the video tag. but that only lost the list of videos [php] Untitled Document <?php $path = "movies/"; $showForm = 1;
if(isset($_POST['Submit'])) {

$showForm = 0;

?>

[s][i][b]

<PARAM NAME="movie" VALUE="<?php echo $path.'/'.$_POST['file']; ?>">
<EMBED TYPE="application/x-mplayer2"
SRC="<?php echo $path.'/'.$_POST['file']; ?>"
NAME="MediaPlayer"
WIDTH=320
HEIGHT=42>
</EMBED>
</OBJECT>[/b][/i][/s]
<?php } if ($showForm == 1) { //using the opendir function $dir_handle = @opendir($path) or die("Unable to open $path"); echo 'Directory Listing of $path
'; echo ''; //running the while loop echo ''; while ($file = readdir($dir_handle)) { if($file!="." && $file!="..") echo '' . $file . ''; } echo ''; //closing the directory closedir($dir_handle); echo ''; echo ''; } ?>
</body>
</html>[/php]

I’d start with checking where you are in the script, to see if you are still getting to your ‘view’ action .

[php]
if(isset($_POST[‘Submit’])) {
die(print_r($_POST));
$showForm = 0;
[/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service