PHP Email

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
htruong
Forum Newbie
Posts: 2
Joined: Tue Apr 08, 2008 3:13 pm

PHP Email

Post by htruong »

Hey,

I have a small problem. Let me detail the situation first:

First: The user enter their information for an event registration.

Second: The user click a button which will take them to paypal site where they pay the registration fee.

Third: Paypal send them to a confirmation page back in the site.

I want to use php to send an email to me after they pay the fee with the user information. My problem right now is that I'm using sessions right now but when the user go to paypal site all the session information is lost. So when the return to the site I have no information to send in an email.

Any Suggestion?

Thanks
earcaraxe
Forum Newbie
Posts: 5
Joined: Mon Apr 07, 2008 8:33 pm

Re: PHP Email

Post by earcaraxe »

Have the return page accept GET variables in the url string. And have the paypal return site url include those variables in the url string.
htruong
Forum Newbie
Posts: 2
Joined: Tue Apr 08, 2008 3:13 pm

Re: PHP Email

Post by htruong »

Can you give me a quick example. Thanks
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: PHP Email

Post by s.dot »

He is saying have the "return_url" in the paypal form be like:

http://www.example.com/return.php?user= ... var2=value

Then use those variables in your script. It may work depending on your situation. However if a user doesn't use the return to merchant feature of paypal, then it would never email you. You may want to look into setting up an IPN script. It would be much more logical and reliable.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply