Page 1 of 1

PHP Email

Posted: Tue Apr 08, 2008 3:13 pm
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

Re: PHP Email

Posted: Tue Apr 08, 2008 7:47 pm
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.

Re: PHP Email

Posted: Tue Apr 08, 2008 9:40 pm
by htruong
Can you give me a quick example. Thanks

Re: PHP Email

Posted: Tue Apr 08, 2008 10:08 pm
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.