Welcome to WebmasterWorld Guest from 54.224.164.166

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)

Junior Member

10+ Year Member

joined:Jan 13, 2003
posts:145
votes: 0


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)

Senior Member

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

joined:Mar 15, 2002
posts:6807
votes: 0


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)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
posts:2546
votes: 0


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)

Junior Member

10+ Year Member

joined:Jan 13, 2003
posts:145
votes: 0


Cool,

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

TJ

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members