Page 1 of 1

Find previous URL

Posted: Tue Jun 28, 2005 8:06 am
by matticus1181
My question may not be possible. I want to capture the url of the site a user was on before they came to my site...I'm not talking about using http_refer.. I have that.. I'm more talking about using the javascript function history(-1)....Now js is client side, and php is server, so is there anyway to get this to work? Thanks...

Posted: Tue Jun 28, 2005 8:12 am
by Critta
You could pass the result of the javascript function in a POST/GET and then handle it with PHP.

Posted: Tue Jun 28, 2005 8:56 am
by CoderGoblin
Not sure if you have access to that information through javascript and cannot look it up at the moment. I do know that this information may stored in the weblog of your server.

Can you explain why you would want this information ?

Posted: Tue Jun 28, 2005 9:59 am
by timvw
I sure hope my browser doesn't tell you that i'm coming from http://mybank.example?sessid=xxx