fatto!!
poi il codice te lo dovresti riuscire ad adattare:
modulo.htm
codice:
<form method="POST" action="creapag.php">
Nome:</p>
<input type="text" name="nome" size="66"></p>
Mail:</p>
<input type="text" name="mail" size="66"></p>
Testo:</p>
<textarea rows="22" name="testo" cols="56"></textarea></p>
</p>
<input type="submit" value="Invia" name="B1"><input type="reset" value="Reimposta" name="B2"></p>
</form>
creapag.php
codice:
<?php
$testo = "<html>
<head>
<meta http-equiv=\"Content-Language\" content=\"it\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
<title>Nuova pagina 1</title>
</head>
<body>
";
$testo .= "
<a href=\"mailto:". $_POST['mail'] . "\">" . $_POST['nome'] . "</a></p>";
$testo .= "
" . nl2br($_POST['testo']) . "</p>";
$testo .= "</body>
</html>";
$file_dest = $_POST['nome'] . ".htm";
$file = fopen($file_dest, 'w');
fwrite($file, $testo);
header ("location: " . $file_dest);
?>