Hi Carol...got a tricky HTTP_REFERER Question? I have DBman accessible from a number of different web pages..I want users to be able to return to their originating page after completing a search etc (without having to post a multitude of links)...so what I need DBman to do is to save & retain the originating URL so that I can provide a $URL link back...even thought they search numerous pages..got any ideas..thanks Rob
If you want users to return to previous page within your DBMAN pages, use the following code:
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Code:
<a href=\"$ENV{'HTTP_REFERER'}\">Back to Previous Page</a>Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
The REFERRER Environmental variable picks up the previous page that the person accessed. So, lets say that I access test.cgi from index.html. If I have the link I gave you on the test.cgi page and I click on it, I will be taken back to the index.html file.
The other solution is to use a javascript history link that can take users two pages back from a search result page within DBMAN.
Could you possibly provide a live example of what you want to occur?
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
The other solution is to use a javascript history link that can take users two pages back from a search result page within DBMAN.
Could you possibly provide a live example of what you want to occur?
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Yes Eliot..here's an example..
5 Users are accessing the same DBman script from 5 different web pages..they all do a multiple level search..now I want each user to be able to return to their orginating HTTP_REFERER page without using back button.
Dbman has to retain the orginating HTTP_REFERER somehow as a $var ..this I know, but how to code this I don't...thanks Rob
5 Users are accessing the same DBman script from 5 different web pages..they all do a multiple level search..now I want each user to be able to return to their orginating HTTP_REFERER page without using back button.
Dbman has to retain the orginating HTTP_REFERER somehow as a $var ..this I know, but how to code this I don't...thanks Rob
I do not think that DBMAN logs HTTP_REFERRER variable. One thought is to edit the auth_logging that to record the original HTTP_REFERRER in the session file, then pass that variable to another variable that will check it and then send the user to their point of origin (HTTP_REFERRER page).
It would be quite complex to say the least.
Carol should be back by this weekend. She may have some ideas...although I would not push her since she is recovering from being sick.
Sorry I can't be more helpful.
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
It would be quite complex to say the least.
Carol should be back by this weekend. She may have some ideas...although I would not push her since she is recovering from being sick.
Sorry I can't be more helpful.
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Sep 10, 1999, 4:48 AM
Novice (32 posts)
Sep 10, 1999, 4:48 AM
Post #8 of 10
Views: 2232
Quote:
Hi Carol...got a tricky HTTP_REFERER Question? I have DBman accessible from a number of different web pages..I want users to be able to return to their originating page after completing a search etc (without having to post a multitude of links)...so what I need DBman to do is to save & retain the originating URL so that I can provide a $URL link back...even thought they search numerous pages..got any ideas..thanks Rob
I hope no one minds if I jump in here.
Use this :
/cgi-bin/dbman/db.cgi?$ENV{'QUERY_STRING'}
this holds the previous DBman command line string - works for me
------------------
Regards,
jheath1@home.com
Not at all, hooter.
Great idea!
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us
Great idea!
Regards,
------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us