troubleshooting Question

Send form to asp server side

Avatar of Whing Dela Cruz
Whing Dela CruzFlag for Anguilla asked on
ASPHTMLJavaScript
6 Comments1 Solution151 ViewsLast Modified:
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>&nbsp; &nbsp; &nbsp; User name :</td>
               <td><input type="text" name="usrname" class="i22" id="ccnum" ></td>
            </tr>
            <tr>
               <td>&nbsp; &nbsp; &nbsp; 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>
ASKER CERTIFIED SOLUTION
Manuel Marienne-Duchêne
ITM

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 6 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros