allora ho controòllato tutto il codice del form è:
Codice:
<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>
<form action="002.php" method="POST" >
</p>
<p align="center"> Nome:
<input type="text" name="Nome" size="20"></p>
<p align="center"> E-Mail:
<input type="text" name="Email" size="20"></p>
<p align="center"> Password:<input type="password" name="Pass" size="20"></p>
<p align="center"><input type="submit" value="Invia" name="B1"><input type="reset" value="Reimposta" name="B2"></p>
<p> </p>
<p>
</p>
</form>
</body>
</html>
e quello della verifica:
<?PHP
$nome_file="dati.txt";
$file=fopen ($nome_file);
$nome1=$_POST['nome'];
$email1=$_POST['email'];
$pass1=$_POST['pass'];
{
if ($nome1=="" || $email1=="" || $pass1==""){
echo "<strong>Riempi i Dati richiesti</strong>";
}
else {
fputs($file, $nome1."|".$email1."|".$pass1."\n");
fclose($file);
echo "<b>Registrazione eseguita!</b>";
echo "I dati inseriti sono:";
echo "Nome: <b> $nome1 </b>";
echo "Email: <b> $email1 </b>";
echo "Password: <b> $pass1 </b>";
}
}
?>
che problema c'è?