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.