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

4/5/2019

How to HIDE IIS ASP.Net and X-Powered-By ASP.NET

Click here to Read Complete Article

3/14/2019

Top 5 Largest technology employers in Silicon Valley

Click here to Read Complete Article

2/1/2019

DNS flag day 2019 - How to check your website

Click here to Read Complete Article

1/10/2019

Removes these 85 dangerous apps from your Android Phone - Complete list

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