innanzitutto, grazie per la risposta...^____________^
cmq ho provato a fare come hai detto, ma mi da sempre errore sulla linea 3.
Ora scrivo il codice dell' intera pag :
codice:<?php include('config.inc.php') if ($_REQUEST['controllo']=="registra") { if (trim($nick) == "" OR trim($psw) == ""): echo "Devi riempire tutti i campi!"; else $query = "INSERT INTO utenti (nome, pass, ip) VALUES ('$nick', '$psw', '$REMOTE_ADDR')"; if (mysql_query($query, $db)) echo "Registrazione effettuata con successo!"; else echo "Erorre durante l'inserimento"; mysql_close($db); endif; Response.Redirect('login.htm') } ?> <html> <head> <title>registrazioen</title> </head> <body> <center> <h2>REGISTRATI</h2> <form name="registra" method="post" action="registrazione.php?azione=registra"> Nome <input name="nick" type="text"> </p> Password <input name="psw" type="password"> </p> <input type="submit"> <input type="reset"> </p> </form> Torna al login </center> </body> </html>

Rispondi quotando