Submit button not working
Posted: Thu Sep 14, 2006 10:52 am
I have two HTML forms that submit to a PHP script. Both of the forms code are almost identical, but for some reason one of the form submit buttons require you ACTUALLY click the submit button where as the other form you can just hit enter.
FORM THAT WORKS:
FORM THAT DOES NOT WORK:
If I add another field to the form that does not work, the form suddenly works. Basically the problem is I can not submit just one field. Does this make sense?
FORM THAT WORKS:
Code: Select all
<form method="post" action="login.php">
<table width="275" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" height="30" colspan="2" class="topBar"><b>PLEASE LOG IN</b></td>
</tr>
<tr>
<td align="center" width="120" height="35" class="greenBar"><b>Username:</b></td>
<td align="center" width="155" class="grayBar"><input type="text" size="19" maxlength="16" name="username" class="fields"></td>
</tr>
<tr>
<td align="center" height="35" class="greenBar"><b>Password:</b></td>
<td align="center" class="grayBar"><input type="password" size="19" maxlength="16" name="password" class="fields"></td>
</tr>
<tr>
<td align="center" height="35" colspan="2" class="topBar"><input type="submit" name="submit" value="Log In" class="buttons"></td>
</tr>
</table>
</form>Code: Select all
<form method="post" action="override_a_case.php">
<table width="300" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" height="30" colspan="2" class="topBar"><b>ENTER A CONTROL NUMBER</b></td>
</tr>
<tr>
<td align="center" class="grayBar"><br>
<b>Control #</b> <input type="text" size="4" maxlength="6" name="control_number" class="fields">
<br><br>
</td>
</tr>
<tr>
<td align="center" height="35" class="topBar"><input type="submit" name="search" value="Look Up Case" class="buttons"></td>
</tr>
</table>
</form>