Solved – How to FORM post DATA using button or link

Define Following Javascript Function

function postform(f){

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”>


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