volevo creare uno script che crea pagine ..la pagina dovrebbe contenere un embed di youtube ..non sempre uguale (con dei valori variabili) .
ho provato a fare qualcosa senza risultati (errore : Parse error: syntax error, unexpected '<' in /membri/bigbook/prova4.php on line 9)
aiutatemi perfavore :razz:Codice PHP:<?php
if(isset($_POST['submit'])){
$nome_file = $_POST['nome_file'];
$nome_file= "$nome_file.php";
$codice = $_POST['codice'];
$testo = "
http://www.youtube.com/v/$codice?version=3&hl=it_IT"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/$codice?version=3&hl=it_IT" type="application/x-shockwave-flash" width="560" height="349" allowscriptaccess="always" allowfullscreen="true"></embed></object>
" ;
$fp = fopen($nome_file, "w");
$fp = fopen("$nome_file", "a+");
fwrite($fp, "$testo");
fclose($fp);
echo "<a href='./$nome_file'>vedi</a>";
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?> ">
<input name="nome_file" type="text" value="">nomefile<br>
<input name="codice" type="text" value="">codice<br>
<input name="submit" type="submit" >
</form>

