php - How do I get the URL from the previous page used to connect to my site? Not the link -


i have tried this: $_server['http_referer']

the challenge gets link person clicked on reach next page , not actual url of previous page.

it not matter if can spoofed. not mission critical. need track percentage of results accurately.

$this->session->set_userdata('url11',"http://$_server[http_host]$_server[request_uri]"); 

this work 100% use variable in place url1 can take @ place in application , write thing in header of view page in php tag.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Socket.connect doesn't throw exception in Android -

iphone - How do I keep MDScrollView from truncating my row headers and making my cells look bad? -