how to return value through php function when called through the anchor tag in html
- by sumit
Look at my code below
<a href="https://secure.gate2shop.com/ppp/purchase.do?merchant_id=234555454545433&merchant_site_id=54443¤cy=USD&total_amount=39.99&item_name_1=IncidentSupportTier1&item_amount_1=39.99&item_quantity_1=1&checksum=**call php function to get the checksum value**&time_stamp=2010-06-14.14:34:33&version=3.0.0"
onmouseover="document.myform.sub_but.src='checkout02.jpg'"
onmouseout="document.myform.sub_but.src='butup.gif'"
onclick="return val_form_this_page()">
<img src="http://www.techvedic.com/gifs/checkout02.jpg"
width="143" height="39" border="0" alt="Submit this form"
name="sub_but" />
On button click the href link will open. But before opening the link I need to calculate the cheksum. I know how to calculate it in PHP script. But please tell me how can I call the PHP function which will return the checksum value. Don’t worry about the code in PHP script.