User can add their own Paypal price

I’m using a Form on my site so users can make a payment to Paypal.
The Form has a boring button to select, and then they proceed to Paypal.
It works successfully. The line in the Form is this:

<input type="submit" value="0.10" name="valu">

So, I changed it to add a better looking Paypal button:

 <input type="submit" value="0.10" name="valu" src="" />

And although the pay button looks better on my site, when you arrive at Paypal, this line appears “Please provide an amount and click update totals”, which basically allows a user to enter any amount he chooses.

So, how can I fix this line so the payment stays at the value I choose (0.10) AND have a better looking paypal button?


That’s probably because depending on your browser, the button will not be passed. Instead a “valu_x” and “valu_y” is passed (where you clicked the button).


<input type="hidden" value="0.10" name="valu">
<input type="image" src="" />

Perfect. Thank you.