Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 47
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
 
 
Register now for full access!
Old 10-18-2009, 10:30 AM Re: Redirect if not been redirected from paypal
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
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!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
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
Experienced Talker

Posts: 47
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
Defies a Status

Posts: 1,605
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

Please login or register to view this content. Registration is FREE

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: 2,138
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.
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
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.15607 seconds with 12 queries