PHP
<?php
if(isset($_POST['submit']))
{
$timestamp = time();
$datei = fopen($time.".html", "w");
$daten = '<html>
<head>
<title>Von PHP erstellt am Timestamp: '.$timestamp.'</title>
</head>
<body>
Name: '.$_POST['name'].'
</body>
</html>'
fwrite($datei, $daten);
fclose($datei);
header("location: $time.html");
}
else
{
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST" name="form" id="form">
Name: <input type="Text" name="name" id="vorname" value="" size="50" maxlength="150" />
<button type="submit" name="submit">Abschicken!</button>
</form>
<?php
}
?>
Alles anzeigen
Ungetestet, grad aus dem Kopf geschrieben