Hi experts, I need to use <a><a/> hyperlink to submit form to asp server. Instead of using button I need to use hyperlink to call function and submit form to asp server. I have no idea how possible is this. Thank you!
<!DOCTYPE html>
<html>
<body>
<form class="modal-content animate" action="GetUser.asp" method="post">
<br>
<div id="ModalNav3">
<table class="four">
<tr>
<td> User name :</td>
<td><input type="text" name="usrname" class="i22" id="ccnum" ></td>
</tr>
<tr>
<td> Password :</td>
<td><input type="password" name="psw" require class="i22" id="ppw"></td>
</tr>
</table>
<br>
<div id="myDiv1">
<a href="javascript:iSubmit()" ><font size="4">Submit Form!</a>
</div>
<input type="text" name="x-1" value="e1" hidden="true"/>
</div>
</form>
<script>
function iSubmit()
{
alert("summitted");
}
</script>
</body>
</html>
Our community of experts have been thoroughly vetted for their expertise and industry experience.