save refferrer to DB - نوشته شده در (1163 Views)
Senior Member
tribaliztic
مطلب: 1532
1532
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. <
/Tribaliztic
- www.gotlandrace.se -
 پیش‌فرض مرتب‌سازی برای تاریخ DESC به معنی جدیدترین است  
 تعداد در صفحه 
نوشته شده در
Support Moderator
pdrg
مطلب: 2897
2897
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...<
نوشته شده در
Senior Member
tribaliztic
مطلب: 1532
1532
Okay, and it will add to the table and not overwrite? =)
The simpler the better! <
/Tribaliztic
- www.gotlandrace.se -
 
شما باید یک متن وارد کنید