Hello,
My friend wants to make a page that can tell if someone has paid through paypal when visiting it, or just visited it to try and get the thing without paying.
My idea is, for the page to be PHP and to get the referer URL. If it starts with www.paypal.com or http://paypal.com then it uses "if" to show one page, or if it starts with anything else ("else") then it shows an error page.
I was wondering how I could go about doing this/where to start. Or if someone could put together this little thing and spare a minute of their time for some rep
Post below if you think you have anything that may help.
Edit: It'll probably be using a function like..
Then the result will become a variable, and "if" it begins with paypal.com it will echo one page, "else", it'll echo an error.Code:$_SERVER["HTTP_REFERER"]
I just don't know how to code it so that it decides if the referer begins with paypal.com or not.









