PDA

View Full Version : click on hyberlink instead of submit button


petertran123
08-28-2002, 01:58 PM
Hello all,

I have a form to be submitted, but instead having a submit button i can to have a link. Can you help me with that.



<form action="holidayloan.asp" method="post">
<input type="text" name="EFIN" value="<%= request.form("EFIN") %>">
<input type="submit"> <****** can i have a clickable link here instead of submit button..?





Thanks..

Zvona
08-28-2002, 02:23 PM
<form action="" name="myForm">
<table>
<tr>
<td>User:</td>
<td><input type="text" name="myField" /></td>
</tr>
<tr>
<td colspan="2"><a href="javascript:document.myForm.submit();" title="Submit">Submit</a></td>
</tr>
</table>
</form>
Users with scripting disabled aren't able to post the form. Thus, it's not reasonable to use linking thru JS for posting a form.