I made this form for my custom login page. All of the logic seems right but from some reason it doesn't work? Any thoughts as to why?
Code:
If you already have an account, please login by filling in the form below.</p>
<table border=0>
<FORM action="{$xcart_web_dir}/include/login.php" method="post" name="loginform">
<tr>
<td height="10" width="78" class=FormButton>Login</td>
<td width="282" height="10"><input type="text" name="username" size="30">
</td>
</tr>
<tr>
<td height="10" width="78" class=FormButton>Password</td>
<td width="282" height="10"><input type="password" name="password" size="30">
<input type="hidden" name="usertype" value="C">
</td>
</tr>
<tr>
<td height="10" width="78"></td>
<td width="282" height="10"></td>
</tr>
<tr>
<td height="10" width="78"></td>
<td width="282" height="10">
LOG IN
</td>
</tr>
<INPUT type="hidden" name="mode" value="logout">
<INPUT type="hidden" name="redirect" value="{$redirect}">
</FORM>
</table>
If you do not have an account, you can easily
register here</font>