SmileyFace
Programmer
I need to know how to make a form submit information by just pressing the enter button without clicking on the button itself. I don't think I can use input type = 'submit' in this form to do that.
Its a login screen...heres the code....please help
<form name="frmLogin" action="loginaction.asp" method="post">
<br><br><br>
<table border="1" bgcolor="#0F7195" rules="none" cellpadding="2">
<tr>
<td align="center">
<img src="images/ineosloginheader.jpg" border="0">
</td>
</tr>
<tr>
<td align="center">
<img src="images/username.jpg" border="0"><input type="text" name="txtUserName" size="25">
</td>
</tr>
<tr>
<td align="center">
<img src="images/password.jpg" border="0"><input type="password" name="txtPassword" size="25">
</td>
</tr>
<tr>
<td align="center"><img src="/images/blank.gif" border="0" height="1" width="1"></td>
</tr>
<tr>
<td align="center">
<a href="javascript:document.forms(0).submit()"><img src="images/login_ok.jpg" border="0" width="60" height="19"></a>
<a href="javascript:document.forms(0).reset()"><img src="images/login_reset.jpg" border="0" width="60" height="19"></a>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>
Its a login screen...heres the code....please help
<form name="frmLogin" action="loginaction.asp" method="post">
<br><br><br>
<table border="1" bgcolor="#0F7195" rules="none" cellpadding="2">
<tr>
<td align="center">
<img src="images/ineosloginheader.jpg" border="0">
</td>
</tr>
<tr>
<td align="center">
<img src="images/username.jpg" border="0"><input type="text" name="txtUserName" size="25">
</td>
</tr>
<tr>
<td align="center">
<img src="images/password.jpg" border="0"><input type="password" name="txtPassword" size="25">
</td>
</tr>
<tr>
<td align="center"><img src="/images/blank.gif" border="0" height="1" width="1"></td>
</tr>
<tr>
<td align="center">
<a href="javascript:document.forms(0).submit()"><img src="images/login_ok.jpg" border="0" width="60" height="19"></a>
<a href="javascript:document.forms(0).reset()"><img src="images/login_reset.jpg" border="0" width="60" height="19"></a>
</td>
</tr>
</table>
</form>
</center>
</body>
</html>