Reply
Redirect if not been redirected from paypal
Old 10-18-2009, 09:56 AM Redirect if not been redirected from paypal
Average Talker

Posts: 22
Trades: 0
Hello,
I need to know how to make it so if you havent been redirected from paypal.com you goto index.html.

Sofar i have this:
PHP Code:
If(/*dont know what goes here*/) {
    
header('location:/index.html');
    exit();

Please help me.
Thanks
NextToNothing is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 10-18-2009, 10:30 AM Re: Redirect if not been redirected from paypal
chrishirst's Avatar
Super Moderator

Posts: 22,278
Location: Blackpool. UK
Trades: 0
It depends on what you have in your form that you SENT to the paypal server.

Check the values of the passthrough variables (these are returned to you on transaction completion) If they don't match or don't exist reject the access.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 10-18-2009, 11:45 AM Re: Redirect if not been redirected from paypal
Average Talker

Posts: 22
Trades: 0
i need it for a canel page and sucess page from donating.
NextToNothing is offline
Reply With Quote
View Public Profile
 
Old 10-18-2009, 02:48 PM Re: Redirect if not been redirected from paypal
King Spam Talker

Posts: 1,412
Trades: 0
Most people control this with a script. PP communicates with the script and then the script loads your page above so you page would look like:

PHP Code:
If (the referring page is not equal to the scrptname.ph ) {
    
header('location:/index.html');
    exit();

__________________
Colbyt

Last edited by colbyt; 10-18-2009 at 06:41 PM.. Reason: typo
colbyt is offline
Reply With Quote
View Public Profile
 
Old 10-18-2009, 03:59 PM Re: Redirect if not been redirected from paypal
Brian07002's Avatar
Defies a Status

Posts: 1,596
Name: ...
Location: ...
Trades: 0
Quote:
Originally Posted by NextToNothing View Post
Hello,
I need to know how to make it so if you havent been redirected from paypal.com you goto index.html.

Sofar i have this:
PHP Code:
If(/*dont know what goes here*/) {
    
header('location:/index.html');
    exit();

Please help me.
Thanks
If you have a script your working on, post it.
__________________
Sig Less - Have some site you want me to put here? Will put here for a couple of paypal bucks.
Brian07002 is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Redirect if not been redirected from paypal
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.13874 seconds with 13 queries