[Templates] form submit question (probably stupid)
darren chamberlain
dlc@users.sourceforge.net
Tue, 19 Jun 2001 08:05:22 -0400
Andrew Beattie (andrew@tug.com) said something to this effect on 06/19/2001:
> "Randal L. Schwartz" wrote:
> > Uh, you can't. How can you know where hitting "back" twice takes me?
> > You can't go "back" by going "forward". It doesn't work.
> >
> > Just another voting member of the committee to stamp out useless
> > history-mangling refreshes... :)
>
> Can the committee help me with my problem?
>
> Kitez.com is a search engine with a DNS interface. You put your
> search string into the URL. If the search returns only one one match,
> then it does a redirect to the site in question (this is reasonable
> because the database holds only sites related to kite flying).
>
> The redirection code used is:
>
> <META HTTP-EQUIV="refresh" CONTENT="1; url='http://www.kfs.org/~abw//'">
>
> Now, the problem is that when you hit "back" on Andy's page, you
> go back to kitez.com for a second then get refreshed back to Andy's
> page, regardless of how many times you hit "escape"...
Why can't you send a Location header from the browser, rather
than a HTML page with a refresh in it? That would avoid the
problem altogether. Something like (warning: I haven't tested
this):
<VirtualHost 10.0.0.1:80>
ServerName wardley.kitex.com
Redirect / http://www.kfs.org/~abw/
</VirtualHost>
Is there some reason this is undoable? I assume you're using
Apache, of course...
(darren)
--
The biggest difference between time and space is that you can't reuse time.
-- Merrick Furst