the scenario:
I run an ezine that need the subscriber to confirm their subscription. i'm planning to put a one-time offer (discount) to my confirmed subscriber. so the process will be like this:
1) people subscribe -> 2)i send them a confirmation email -> 3) if they confirmed the subscription using the link inside the email, they'll be directed to my one-time offer page
now, the question is how to make the one-time offer page is really a one-time ie. they cannot access it again?
currently i'm using this code in the offer page:
Code: Select all
<?php
$referrer = $HTTP_REFERER;
if ($referrer != 'http://www.confirm)
{
print "Access Denied";
exit;
} ?>Then i tried to make a "jump" page so that the "jump" page will redirect to the offer page (using header). but offer page return 'access denied' maybe be'coz the offer page doesn't recognise the referer.
is there any way that i can use to make this thing happen? your help really much appreciated. by the way i don't know much about php