Salve,
sto provando la funzione session_start()
Ho creato questi due file
form.html
e sessione.phpcodice:<form method="post" action="sessione.php"> Nome utente: <input name="nome_utente"> Password: <input name="password" type="password"> <input type="submit" name="Invio"> </form>
Dopo aver cliccato sul subimit del form, ho "Internal Server Error".Codice PHP:session_start();
$_SESSION["nome_utente"] = $_POST["nome_utente"];
$_SESSION["password"] = $_POST["password"];
if($_SESSION["nome_utente"] == "USER" or $_SESSION["password"] == "PASS"){
echo "ok";
}
La sintassi mi sembra semplice. Cosa ho sbagliato?
Grazie in anticipo!

Rispondi quotando
