in reply to Back Button (referring URL\?)

HTTP_REFERER isn't reliable. Some proxies strip it. And if you do manage to get an HTTP_REFERER, you'll want to examine it before using it, since redirecting someone to a Google search isn't the same as using the browser's Back button to back into a cached result page

Replies are listed 'Best First'.
Re: Re: Back Button (referring URL\?)
by mkahn (Beadle) on Jun 14, 2002 at 22:24 UTC
    Thanks for the response. The page I'm trying to link back to is also on my site. Maybe my isp strips that, I don't know. Do I need to use jscript? Also, why don't I see this thread on seekers?
      I was guessing that what you were trying to do was create a link back to the previous page (the page that "referred" you to the current page). $ENV{HTTP_REFERER} isn't reliable for this in general, due to some proxies and some older browsers. But it sounds from your original post as though you're using a CGI to create pages. So I'm unclear on what, exactly, you're trying to do. Are you trying to create a link back to the page from outside of your side that originally referred a session to your site? Or to some static page on your site?

        Its image gallery scripts, which does most everything wrong; But it does work. there's a find function, which produces a page full of form enabled dumbnails, which you can click on to get to another script generated page, and need to get back from. http://vader.inow.com/~mrk Try it out. Select the hippie_stuff and jpg for a managable amount of content, otherwise your bandwidth and cpu may be busy rendering >1mb of goofy pictures. But if yu've never been to burningman, here's your chance. The scripts need lots of work. I'm planning to implement cgi::pretty for secure cgi and net:something? for real thumbs. Merlyn listed a package to use, but the link went out of date.