Ugyldigt Logind til bestemt side
Hvor retter jeg denne formular således at hvis logind er ugyldigt, så sendes den besøgende til en fejlside, f.eks. error/401.php<form action="/php/login.php?redirect=<? echo $_SERVER['HTTP_REFERER']; ?>" method="post">
<input type="hidden" name="login">
<table width="100%" border="0">
<tr>
<td width="50%" align="right">Brugernavn: </td>
<td width="50%"><input type="text" name="brugernavn" id="login"></td>
<td rowspan="3"><img src="/images/add-key-big.png" width="128" height="128" alt="" title="" /></td>
</tr>
<tr>
<td width="50%" align="right">Kodeord: </td>
<td width="50%"><input type="password" name="password" id="login"></td>
</tr>
<tr>
<td colspan="2" align="center"><input type="submit" value="Log ind" id="submit"></td>
</tr>
</table>
</form>
