Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

One click, two seperate submissions

Submitting to Paypal and processing data to email at the same time



7:00 am on Mar 27, 2003 (gmt 0)

10+ Year Member

I have a friend who wants to sell Ad space on his periodical newspaper through PayPal. He would like to have the Ad text for the space entered into a box that would be sent seperately to his email address at the same time the PayPal button is clicked for payment processing. Is there a way to impose a dual function action on the PayPal button so, it both sends off to PayPal and sends the Ad text from the text box at the same time?

I know enough PHP to do it as a single function for the Ad email sending but, I want to kill two birds with one stone. Can I do both at the same time with one click? I'm stuck


7:31 am on Mar 27, 2003 (gmt 0)

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Sure... Just let your script first send the e-mail, then take care of the submission, using a redirect or whatever you need :)


11:54 am on Mar 27, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

Exactly as the Doc said. Set the form action to go to your script. In your script, build and send the email then build a PayPal link and do a redirect to PayPay.

header(Location: "ht*ps://www.paypal.com/webscr....");

I use the same method on my site.


3:26 pm on Mar 27, 2003 (gmt 0)

10+ Year Member


Thanks guys! That makes sense. Now to just put it into action.



Featured Threads

Hot Threads This Week

Hot Threads This Month