save refferrer to DB

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/63732?pagenum=1
05 November 2025, 10:21

Topic


tribaliztic
save refferrer to DB
12 January 2007, 07:10


I have a page that all users are redirected to if they try to enter a url that don't exist on my site. Like www.site.com/snitz.asp --> www.site.com/pagenotfound.asp.
I have a user that very often end up on that page and want to know what page he's trying to reach. I thought that it would be a piece of cake to save the refferrer url to the db and then create a page that displays all url's that are not reached but got a brain meltdown. Can someone help me alittle? What I need help with is the sql to save the Refferrer-variable to the db. <

 

Replies ...


pdrg
12 January 2007, 09:28


if you've got the request.http_referrer (or whatever its called, I forget) then you could just create a simple one-column table with a (say) varchar(1000) datatype, and

insert mytable
values (http_referrer)

At it's simplest, that's it...<
tribaliztic
13 January 2007, 01:24


Okay, and it will add to the table and not overwrite? =)
The simpler the better! <
© 2000-2021 Snitz™ Communications