I've been trying to create an application where an input through a form would change the src of an video.
Here is the code
<video width="640" height="360" src=<?php echo $_POST["test"]; ?> controls autoplay>
<p> Try this page in Safari 4! Or you can <a href="http://www.youtube.com/demo/google_main.mp4">download the video</a> instead.</p>
and here is the html.
<form action="test.php" method="post">
URL:<input type="url" name="test" />
<input type="submit" value="Play" />
I hope that you guys can see what I am trying to do through this code.