in reply to Re^9: Coding and Design Advice
in thread Coding and Design Advice

Hi,

I think I was able to figure out my problem. Here's the flow of my script, person views static web HTML page with form -> they complete the form -> select their payment option -> click Submit. The submit action calls in my script camp.cgi.

In this script, I did the following conditional:

If payment option is equal to a or b -> generate confirmation page to print for records, send confirmation email, and a third email to the person hosting the event.

If payment option is equal to c (credit card) -> send confirmation email to person, send email to person hosting event, and finally generate a paypal page which contains the HTML code and PayPal button which I got directly from PayPal.

I ran the script with option c and when I clicked the Add to Cart button which directs you to PayPal, I was actually directed to PayPal. I was able to view my cart and go to checkout. So I think I'm ok. I'm not quite sure how I came up with this. It dawned on me during the middle of the night.