Carrying amount value over to PayPal from Donation form -
i creating new website non-profit organization, , have donation form in donor can enter amount give, , have value carried on paypal.
here website.
if click on "give online", modal appears donation form.
here form's code: (it taken website's contact form in order keep forms visually similar.)
<!-- form --> <form id="contactform" action="#" method="post"> <fieldset> <p><label for="amount">enter amount wish donate.</label> <input name="amount" id="amount" type="text" value="" class="form-poshytip" title="usd"></p> <p><input type="button" value="continue"></p> </fieldset> </form> <!-- ends form -->
the continue button not anything, yet. direct donor paypal page amount entered in donation form present.
code directs donor paypal missing, because not advanced-code savvy. appreciated.
here sample donation button code can use:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_donations"> <input type="hidden" name="business" value="email address"> <input type="hidden" name="item_name" vale="donation"> <input name="amount" id="amount" type="text" value="" class="form-poshytip" title="usd"> <input type="image" src="https://www.paypal.com/en_us/i/btn/btn_donate_sm.gif" border="0" name="submit" alt="paypal - safer, easier way pay online!"> </form>
i grabbed amount
line code , added mine. didn't use "continue" button on sample. put in actual donation button image.
Comments
Post a Comment