Hey,
I have a login form on my site which uses a custom button.
The code is below
<form action="<?php $_SERVER['PHP_SELF'] ?>" method="post" />
<table width="568" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="195" height="33" bgcolor="#FFFFFF">
<div align="center"> Username :
<input type="text" name="username" size="13" maxlength="12" class="button" />
</div>
</td>
<td width="187" height="33" bgcolor="#FFFFFF">Password :
<input type="password" name="password" size="13" maxlength="20" class="button" />
</td>
<td width="51" height="33" bgcolor="#FFFFFF">
<div align="center"><b>
<input type="image" src="/images/login_button.gif" border="0" height="14" width="39" id="Login" name="submit" value="Login" alt="HHR Login"/>
</b></div>
</td>
<td width="135" height="33" bgcolor="#FFFFFF"><b><a href="/register.php">Register</a></b>
| <a href="/forgotpass.php">Lost Pass</a></td>
</tr>
</table>
</form>
On the index page I have the following code.
if ($_POST['submit'] == 'Login')
{
login_results();
}
When the custom button is clicked a results function should run. This works perfect under Mozilla FireFox but the login_results method never gets ran with Internet Explorer.
Is there a way to go about making it work in both browsers?
Thanks.