Solved - How to FORM post DATA using button or link

Solved - How to FORM post DATA using button or link

Define Following Javascript Function

 <SCRIPT LANGUAGE="JavaScript">
function postform(f){
    f.submit();
}
</SCRIPT>

Your form will look as follows

<form method="post" action="scriptpage.ext" name="frmedgopost1">

 <a href="#" onClick="postform(document.frmedgopost1);return false;" color="#ff0000">BUY NOW</a>

<input name="nid" value="22" type="hidden">
<input name="webname" value="33 type="hidden">
<input name="cid" value="44" type="hidden">

</form>
 

Now on click of BUY NOW the form data will be submitted to page defined under action.

Contact us for any question on this topic

10/9/2018

List of INDIA goverment sites using legacy Symantec certificate

Click here to Read Complete Article

10/9/2018

List of sites using legacy Symantec certificate

Click here to Read Complete Article

9/11/2018

Everything you want to know about Favicon checker and Generator

Click here to Read Complete Article

Search for any Payment Gateway PayPal , PayTm , BIKE BOT , Tech Help , Tech News

Click here to Contact for any Integration Help

Click here if you wants free ₹51 in bank account NOW!

Now how to make Money Online for Free

India Asian Gold Medals