Codice PHP:
<form name="form1" action="opzioni.php" method="post">
<table border=0 width =545 >
<tr>
<td rowspan=1 WIDTH=93 VALIGN="TOP"></td>
<td align="justify"WIDTH=442>
<FONT SIZE=2 face="Tahoma">[b]Login
Procedura B[/b]</FONT>
</td>
</tr>
<tr>
<td colspan="2">
Password:
<input name="pass" type="text" size="10" maxlength="15">
<input name="invia" type="submit" value="entra">
</td>
</tr>
</table>
</form>
opzioni.php
Codice PHP:
<?php
switch($_POST['pass'])
{
case 'prima password':
header('Location: 1.php');
break;
case 'seconda password':
header('Location: 2.php');
break;
default:
header('Location: sbagliato_password.php');
}
?>