Rob (SA)
09-18-2010, 06:04 PM
Hi,
I have some script which creates a button, however onclick it does not do what I would like it to do and that is go to the payfast page.
<tr class="alt2">
<td>GARETH TINDALL</td>
<td>BOLAND</td>
<td>STRAND</td>
<td>?</td>
<td>
<button id="AdvancedButton2" type="button" onClick="window.location=''" name="AdvancedButton1" style="width:66px;height:20px;background-color:#98ABCE;"><div><font style="font-size:11px" color="#000000" face="Arial">PAY NOW</font></div></button>
<form action="https://www.payfast.co.za/eng/process" method="post">
<input type="hidden" name="cmd" value="_paynow">
<input type="hidden" name="receiver" value="r*****@m***b.coza">
<input type="hidden" name="item_name" value="GNJGF Tournament Payment">
<input type="hidden" name="item_description" value="payment">
<input type="hidden" name="amount" value="151.00">
<input type="hidden" name="return_url" value="http://www.gnjgf.co.za/entryform.php">
<input type="hidden" name="cancel_url" value="http://www.gnjgf.co.za/d.php">
</td>
</form>
</tr>
Any help here would be most helpful?
Kind Regards
Rob
I have some script which creates a button, however onclick it does not do what I would like it to do and that is go to the payfast page.
<tr class="alt2">
<td>GARETH TINDALL</td>
<td>BOLAND</td>
<td>STRAND</td>
<td>?</td>
<td>
<button id="AdvancedButton2" type="button" onClick="window.location=''" name="AdvancedButton1" style="width:66px;height:20px;background-color:#98ABCE;"><div><font style="font-size:11px" color="#000000" face="Arial">PAY NOW</font></div></button>
<form action="https://www.payfast.co.za/eng/process" method="post">
<input type="hidden" name="cmd" value="_paynow">
<input type="hidden" name="receiver" value="r*****@m***b.coza">
<input type="hidden" name="item_name" value="GNJGF Tournament Payment">
<input type="hidden" name="item_description" value="payment">
<input type="hidden" name="amount" value="151.00">
<input type="hidden" name="return_url" value="http://www.gnjgf.co.za/entryform.php">
<input type="hidden" name="cancel_url" value="http://www.gnjgf.co.za/d.php">
</td>
</form>
</tr>
Any help here would be most helpful?
Kind Regards
Rob