Forum Moderators: coopster
Say you link to my site using a url like
example.com?id=123
then while on my site you click on a link but that link goes thru a GeoIP script that see you're from a blocked country and redirects you to
example.com/blocked/country.php
then this page will check to see if an id is set and base further actions on if it's set or not.
Problem is, on example.com/blocked/country.php it can't get the id variable unless it's in the url.
Is that right? Or is there another way I'm not thinking of?
$ref = $_SERVER['HTTP_REFERER'];
$string = strstr($ref,"id=");
$ref = str_replace("id=","",$string);
echo $ref;