Mobile app version of vmapp.org
Login or Join
Barnes591

: PayPal donation drop-down list How could I have a drop-down list next to my PayPal donation button, where you can select an amount or an "other" option to enter your own amount?

@Barnes591

Posted in: #Paypal

How could I have a drop-down list next to my PayPal donation button, where you can select an amount or an "other" option to enter your own amount?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes591

1 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay111

Simply set the name of a select to 'amount', and the value of that select will be posted to PayPal.
Leave it empty (as can be seen with 'Other' in the example below) and PayPal will ask the buyer to enter an amount instead.

<form method="POST" action="...................">
<!- Generic PayPal form stuff here -->
<select name="amount">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
<option value="">Other</option>
</select>
<!- Generic PayPal form stuff here -->
<!-- Don't forget to set the currency. E.g. USD, EUR, etc.. -->
<input type="hidden" name="currency_code" value="EUR">

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme