Gossamer Forum
Home : Products : DBMan : Customization :

HTTP_REFERER Question?

Quote Reply
HTTP_REFERER Question?
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
Quote Reply
Re: HTTP_REFERER Question? In reply to
If you want users to return to previous page within your DBMAN pages, use the following code:

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
Quote Reply
Re: HTTP_REFERER Question? In reply to
Hi Eliot..thanks for the response...no not from within DBman...from referring HTML...DBman has to retain the originating
HTTP_REFERER..I believe the HTTP_REFERER changes with every page change right? thanks Rob
Quote Reply
Re: HTTP_REFERER Question? In reply to
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
Quote Reply
Re: HTTP_REFERER Question? In reply to
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
Quote Reply
Re: HTTP_REFERER Question? In reply to
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
Quote Reply
Re: HTTP_REFERER Question? In reply to
Hi again Eliot... thanks for the input..I'm sorry to hear about Carol...nothing to serious I hope..yes she has got that certian nack when it comes to Perl...thanks again Rob
Quote Reply
Re: HTTP_REFERER Question? In reply to
 
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 Wink


------------------
Regards,
jheath1@home.com
Quote Reply
Re: HTTP_REFERER Question? In reply to
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
Quote Reply
Re: HTTP_REFERER Question? In reply to
Hi Hooter...thanks for the input...not quite what I need...I have to get DBman to retain the first HTTP_REFERER value for link back..
This is representing quite a little teaser.
I've tried assigning value to a $varible but HTTP_REFERER is constanly changing...Rob