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 -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -