Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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?

share|improve this question
add comment

1 Answer 1

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">$1</option>
<option value="2">$2</option>
<option value="3">$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">
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.