Need help with PHP

so well i got this site of mine just a test site.
the code of the site is this:
http://pastie.org/2106133
but where do i have to put the $_GET["action"]
I know im a noob with PHP and html :$ but just when i want the second page be named like
watch?myvideo
where do i have to put it and how xD
thanks though ^^
 

HOW IS IT HARD!?!

Basically, after the ? you put your variables.

Code:
mysite.com/myfile.php?variable1=value1&variable2=value2&variable3=value3
 
YouTube would have code like:
Code:
<?php
mysql_connect("localhost", "username", "password");
$watch = $_GET["watch"];
$query = mysql_query("SELECT * FROM videos WHERE id = '$watch';");
$rows = mysql_num_rows($query);
if ($rows == 1) {
	$videourl = mysql_result($query, 0, "URL.flv");
	// Embed Flash Player with Video URL here
} else {
	die("More than one video recognised under this ID!");
}
?>
Of course, the main aspect seen there is the $_GET variable array. Basically, add a link that has ?watch=ID or something, and then if you echo $_GET["watch"], it would echo "ID".
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…