***** hai un esempio? ho una pagina html con questo codice -> ******
<form action='loginok.php' method='post'>
Username: <input type='text' name='username'>
Password: <input type='password' name='password'>
<input type='submit' value='Entra'>
***** mentre nella pagina login.php ho il codice -> *****
<?php
$nome_utente = 'miauser';
$password_utente = 'miapass';
if(isset($_POST['username'], $_POST['password']) && ($_POST['username'] == $nome_utente) && ($_POST['password'] == $password_utente))
{
header('Location:http://www.miosito.it/miapagina.html');
?>
<?php
}
else echo 'Non sei autorizzato!';
?>
![]()
![]()