Posted on 2007-07-24
I have multiple form field elements, say for example I want a user to select a predefined option from a drop down list (option value=$35.00) I want them to also be able to type in an amount if they want to donate additional money.
So basically, if I choose a value from a drop down, and it is $35.00, there should be another form field below it where the user can type in any amount that they want.
If they type in this amount, the two values should be added together and then passed to my payment gateway as the form field which has the name "x_amount"
If a user simply chooses a value from teh pull down menu, then that value should be passed to the Total field, same goes for the other form field where they can enter in their own donation amount.