SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Paypal Donate Button Html Customisation Help

    Hi, I'm looking for some code that allows the user to choose both their currency and also any donation amount they want, unlimted.

    I know this is possible, yet figuring out the exact code seems to be just beyond my grasp.

    I have this so far, yet want the amount to be free text, not a pull down with limited choices, so that people can choose absolutely whatever amount they like with no limitation...

    <form class="sdf-paypal-form mceVisualAid" action="https://www.paypal.com/cgi-bin/webscr" enctype="application/x-www-form-urlencoded" method="post" target="_blank"><b>Currency: </b>

    <select class="currency-code" name="currency_code"><option selected="selected" value="GBP">£ UK Pounds</option><option value="EUR">€ Euros</option><option value="USD">$ U.S. Dollars</option></select>Amount: <select name="amount"><option value="5.00">5.00</option><option value="10.00">10.00</option><option value="15.00">15.00</option><option selected="selected" value="20.00">20.00</option><option value="25.00">25.00</option><option value="30.00">30.00</option><option value="50.00">50.00</option><option value="75.00">75.00</option><option value="90.00">90.00</option><option value="100.00">100.00</option></select><input type="image" height="47" name="I1" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" width="160" />

    <input type="hidden" name="cmd" value="_xclick" /> <input class="paypal-business" type="hidden" name="business" value="donate@k9-rescue.co.uk" /> <input type="hidden" name="item_number" value="Cash Gift - One Time Donation - Website" /> <input type="hidden" name="item_name" value="K9 Rescue Foundation - Donation" /> <input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_donateCC_LG.gif:NonHostedGuest" />

    </form>
    Can anyone help me please?

    Thank you!

  2. #2
    SitePoint Member
    Join Date
    Feb 2006
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, looks like I have managed to do it after all!

    <form class="sdf-paypal-form mceVisualAid" action="https://www.paypal.com/cgi-bin/webscr" enctype="application/x-www-form-urlencoded" method="post" target="_blank"><b>Currency: </b><select class="currency-code" name="currency_code"><option selected="selected" value="GBP">£ UK Pounds</option><option value="EUR">€ Euros</option><option value="USD">$ U.S. Dollars</option></select>Amount: <input id="amount" type="text" name="amount" value="" /><input type="image" height="47" name="I1" src="https://www.paypalobjects.com/en_US/GB/i/btn/btn_donateCC_LG.gif" width="160" /><input type="hidden" name="cmd" value="_xclick" /> <input class="paypal-business" type="hidden" name="business" value="donate@k9-rescue.co.uk" /> <input type="hidden" name="item_name" value="K9 Rescue Donation" /> <input type="hidden" name="bn" value="PP-SubscriptionsBF:btn_donateCC_LG.gif:NonHostedGuest" /></form>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •