We help IT Professionals succeed at work.
Get Started

Send form to asp server side

Whing Dela Cruz
on
149 Views
Last Modified: 2017-03-28
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>
Comment
Watch Question
This problem has been solved!
Unlock 1 Answer and 6 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE