Page 1 of 1

Paypal return URL

Posted: Thu Aug 28, 2008 1:47 pm
by eektech
Hi, I'm setting up a donation button using PayPal.

I need the donator to provide a recipient e-mail address to send an e-card to after they donate. I talked to paypal and they said I couldn't do it on the paypal site since I can't alter the pages...etc

Is there a way to see what page someone is linked from? Say I setup the return URL to goto http://www.example.com/return.php, can I verify they came from paypal instead of just typing in the url directly? Or is there a way to pull a variable from paypal when they're re-directed to verify they came from paypal?

Thanks!

Re: Paypal return URL

Posted: Thu Aug 28, 2008 11:12 pm
by The_Anomaly
I haven't used it myself, but check out getenv() and CGI Environmental variables--specifically HTTP_REFERER. Seems to be what you're looking for.