I would like to the whole of the URL including the _GET variable names and values, for example www.mywebsite.com/store.php?department=MENS
The code I have used below only gives me the URL without the _GET variable part.
$url = $_SERVER['SERVER_NAME'];
$page = $_SERVER['PHP_SELF'];
$page = $_POST['url'];
echo "http://".$url.$page;
All I would like is to be able to copy that URL exactly how it is.
try this function
taken from hre
use it like
see if works for you
like this one..
sample is i have the url in the link
then you can get the value on savedl.php using $_POST['name']