Forum Moderators: coopster
Let say my URL address looks like this
"http://www.anydomainnamexyz.com/directory/hardware/product.php?pid=1&brand=Imate&model=Jam&ram=64"
I am confused how to catch the whole URL into a single variable called $page_back, so I can send back the user to the above page after successful LOGIN or REGISTRATION.
You can also build the protocol portion of that string on the fly, just in case they were trying to enter a secured area:
$http = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '') . '://';
You could use that portion to replace the hard-coded 'http' part of dc's code.