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

Search for any Payment Gateway PayPal, CCAvenue, WorldPay, Technology Help

Click here to Contact for any Integration Help

Earn Rs 51 and Help a Needy and more on further referral (INDIA ONLY) I’m inviting you to join Tez, a simple and secure payments app by Google. Here’s my code UG0W9 - just enter it before your first transaction. Once you’ve sent your first payment, we’ll each get ₹51! https://g.co/tez/UG0W9