Jul 4th, 2010, 9:47 PM
Hi all,
I've managed to get the PayPal demo form operational. Woo hoo! I've since extended it by adding three drop downs in place of the original "amount" select input found in the demo. I've been trying to figure out how to add the dollar values in the three drop downs for submission to PayPal.
I see that the original drop down has name="amount". With a bit of exploring I see the following code snippet in global_config.inc.php;
This tells me that PayPal requires the value "amount" which just so happens to be used in the demo drop down. Hey, Hey!
Now my drop down names are "session1", "session2" and "donate". How do I add these three selected values and feed them to PayPal via their @$paypal[amount] variable?
I suspect I can place the code in paypal_submit.php since this is the go-between from the form to PayPal. Where would it go? Kinda new to PHP so it would be awesome if you could provide some sample code.
I suspect responses to these questions would help a lot of users. If I figure it out before I get a response I'll post it here.
Thanks in advance,
Scott
I've managed to get the PayPal demo form operational. Woo hoo! I've since extended it by adding three drop downs in place of the original "amount" select input found in the demo. I've been trying to figure out how to add the dollar values in the three drop downs for submission to PayPal.
I see that the original drop down has name="amount". With a bit of exploring I see the following code snippet in global_config.inc.php;
Code:
<input type="hidden" name="amount" value="<?php echo @$paypal[amount]?>" />
This tells me that PayPal requires the value "amount" which just so happens to be used in the demo drop down. Hey, Hey!
Now my drop down names are "session1", "session2" and "donate". How do I add these three selected values and feed them to PayPal via their @$paypal[amount] variable?
I suspect I can place the code in paypal_submit.php since this is the go-between from the form to PayPal. Where would it go? Kinda new to PHP so it would be awesome if you could provide some sample code.
I suspect responses to these questions would help a lot of users. If I figure it out before I get a response I'll post it here.
Thanks in advance,
Scott