Announcement

Collapse
No announcement yet.

Help to get form action to work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help to get form action to work

    Hi Folks,

    I have got the following info in terms of a button - to work.
    PHP Code:
    <form action="https://www.payfast.co.za/eng/process" method="post" target="_parent">
    <
    input type="hidden" name="cmd" value="_paynow">
    <
    input type="hidden" name="receiver" value="robhar@mweb.co.za">
    <
    input type="hidden" name="item_name" value="Tournament Entry Payment">
    <
    input type="hidden" name="item_description" value="To Enter - Payment is requires">
    <
    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/Glacier_Main.html">
    <
    input type="image" src="http://www.payfast.co.za/images/buttons/paynow_basic_logo.gif" width="95" height="57" alt="Pay Now" title="Pay Now with PayFast">
    </
    form

    However I want to cahnge the image / style of the button to look different and have now difficult in getting it to work.

    PHP Code:
    <form action="https://www.payfast.co.za/eng/process" method="post">
    <
    input type="hidden" name="cmd" value="_paynow">
    <
    input type="hidden" name="receiver" value="robhar@mweb.co.za">
    <
    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">
    <
    button id="AdvancedButton2" type="button" onClick="window.location='https://www.payfast.co.za/eng/process' method="post" 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
    Anybodys help here would be welcome
    Kind Regards
    Rob
    www.gnjgf.co.za
    www.oryan-projects.com
Working...
X