P.D El código es el siguiente
Código PHP:
<html>
<head>
<title>Insertar alumnos
</title>
</head>
<body>
<?
if (isset($_POST['submit'])) {
$fp = fopen("alumnos.txt", "a");
fwrite($fp, $_POST['DNI'] . "\t" . $_POST['nombre'] . "\t" . $_POST['nota'] . PHP_EOL);
fclose($fp);
}
echo "<a href='inicio.php'>Continuar</a>";
die;
?>
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<table width="200" border="1">
<tr>
<td>DNI</td>
<td><input name="DNI" type="text"></td>
</tr>
<tr>
<td>NOMBRE</td>
<td> <input name="nombre" type="text"></td>
</tr>
<tr>
<td>NOTA</td>
<td><input name="nota" type="text"></td>
</tr>
</table><br>
<input name="submit" type="submit" value="continuar" />
</form>
</body>
</html>