<html>
<body>

<!--
http://www.youtube.com/
watch
?
v=rY0WxgSXdEE
&
feature=relmfu
-->

<?
	if (isset($_REQUEST["insert"])) {
		echo "cliccato su inserisci <br />";
		echo "url inserita: " . $_REQUEST["url"] . "<br />";
		$pos = strpos($_REQUEST["url"], "v=");
		echo "inizio di alla posizione " . $pos . "<br />";
		$id_filmato = substr($_REQUEST["url"], $pos+2, 11);
		echo $id_filmato . "<br />";
	}
?>


<iframe title="YouTube video player" width="200" height="190" src="http://www.youtube.com/embed/rY0WxgSXdEE?autoplay=1&playlist=_Jtpf8N5IDE,fJ9rUzIMcZQ" frameborder="0" allowfullscreen></iframe>


<form method="GET" action="<? echo $_SERVER["PHP_SELF"]; ?>">
	<input type="text" name="url" value="inserisci url" /> <br />
	<input type="text" name="nome" value="description" /> <br />
	<input type="submit" name="insert" value="inserisci!" /> <br />
</form>

</body>
</html>