does a function exist...?
Moderator: General Moderators
does a function exist...?
Is there any way to get the URL someone is leaving a page to go to? ie if one were going from zork.com to megazork.com, could a script be run on zork.com that would somehow return the value megazork.com? thanks for any input[/quote]
you could make a script for it.
put the above code in a page and link to it like: <a href="page.php?goto=www.url.com">url</a>
makesure you have a db table for saveing that info.
Code: Select all
<?php
//goto.php
if(isset($_GET[goto]))
{
//save in db table
$insert = mysql_query("insert into table ('','$_GET[goto]')");
header(Location: $GET[goto]);
}
?>makesure you have a db table for saveing that info.
I see what you're doing, but...
That's not really what I'm trying to do, I want to know where the user is going regardless of whether or not they click a link from my site. I don't even know if this is possible but I mean like if they type something in the location bar or something.
didn't think so
I didn't think it would exist, oh well worth a shot, for the record though I'm not trying to capture keystrokes or anything, I just wanted the address they were leaving my site to. Oh well, I've found a way to do this with javascript now so it's all good.