premetto che sto imparando php con l'ausilio di un buon libro, e sto facendo pian piano tutti gli esempi che esso mi propone.
ora sono arrivato ad un punto morto
praticamente dopo aver inviato i "valori"del form, mi restituisce sempre una pagina bianca, come se la funzine isset(); abbia restituito FALSE..Codice PHP:
<html>
<body>
<hr>
<h2> INSERIMENTO DATI </h2>
<form action="<?php echo $_SERVER["PHP_SELF"];?>" method="get">
nome <input type="text" name="nome">
cognome <input type="text" name="cognome">
nome utente <input type="text" name="nomeutente">
password <input type="password" name="password">
<input type="submit" name="submit" value="invia">
</body>
</html>
<?php
if (isset($_POST["submit"]))
{
$nome= $_POST["nome"];
$cognome= $_POST["cognome"];
$nomut=$_POST["nomeutente"];
$password=$_POST["password"];
echo "benvenuto $nome, $cognome";
echo "
";
echo "il tuo nome utente è $nomut";
echo "
";
echo "e la tua password è $password";
}
?>
mah...