Hey everyone,

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

test.php
HTML Code:
<!DOCTYPE html>
<html lang="en">
  <head>
    
  </head>
  <body>

<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>
  </video>

  </body>
</html>
and here is the html.

hello.html
HTML Code:
<!DOCTYPE html>
<html lang="en">
  <head>
  
  </head>
  <body>

<form action="test.php" method="post">
URL:<input type="url" name="test" />
<input type="submit" value="Play" />
</form>

  </body>
</html>
I hope that you guys can see what I am trying to do through this code.

thanks alot!