No Scusa e che nn l'ho inserito io, aspetta ti mando il codice completo
Ekko:
Codice PHP:
<?php
if(empty($_POST['username'] OR $_POST['password'])){
Header("Location: pagina_di_login.html");
}else{
$user = "prova";
$pw = "prova";
if($_POST['username'] == $user && $_POST['password'] == $pw){
Header("Location: http://marco988.altervista.org/Autenticazione/loginsi.html");
}else{
Header("Location: http://marco988.altervista.org/Autenticazione/loginno.php");
}} ?>
<center>
<form action=”” method="POST" name="formLogin" id="formLogin">
<table border="1" align="center">
<tr>
<td><div align="right">Username:</div></td>
<td><div align="center">
<input name="username" type="text" id="username">
</div></td>
</tr>
<tr>
<td><div align="right">Password:</div></td>
<td><div align="center">
<input name="password" type="text" id="password">
</div></td>
</tr>
<tr>
<td colspan="2" align="center"><div align="center">
<input type="submit" name="Submit" value="Accedi">
</div>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>