homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

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)

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)

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)

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)


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


Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved