classe IV E SIA - Esercizio corretto con il login +cookie
Login.php <html> <head> <title>Login Area</title> </head><body> <?php if(isset($_GET['error_login'])) { echo "Error ,please compile correctly the form!"; } ?> <form method="post" action="login3.php"> <table> <tr> <td>Username</td> </tr> <tr> <td><input type="textbox" name="user" id="user" /></td> </tr> <tr> <td>Password</td> </tr> <tr> <td><input type="text" name="pass" id="pass"/></td> </tr> <tr> <td><input type="submit" value="Log In" /></td> </tr> </table> </form> </body> </html> Login2.php <?php session_start(); $user="user"; $pass="password"; $page_to="page.php"; ...