Re: back to referring page

From: Mike Brearley (mike_brearleyDONTDOIT_at_NOSPAMhotmail.com)
Date: 05/14/04


Date: Fri, 14 May 2004 14:28:23 -0400

what about calling the form page with something like
'form.asp?referer=thispage.htm' Question is, how do I find out what referer
is and use it or what's the correct way of doing this?

-- 
Posted 'as is'.  If there are any spelling and/or grammar mistakes, they
were a direct result of my fingers and brain not being synchronized or my
lack of caffeine.
Mike Brearley
"Aaron Bertrand - MVP" <aaron@TRASHaspfaq.com> wrote in message
news:u5OBfzdOEHA.3712@TK2MSFTNGP10.phx.gbl...
> Why not make the referring URL part of the form data.
>
> <form name=a onsubmit='document.a.referer.value=document.location.href';>
> <input type=hidden name=referer>
> ...
>
> Then on the next page,
>
> <input type=button
onclick='location.href="<%=request.form("referer")%>";'>
>
> -- 
> Aaron Bertrand
> SQL Server MVP
> http://www.aspfaq.com/
>
>
>
>
> "Mike Brearley" <mike_brearleyDONTDOIT@NOSPAMhotmail.com> wrote in message
> news:eGqhvwdOEHA.2336@TK2MSFTNGP09.phx.gbl...
> > I was wondering if there was an easy way to have a form set up so that
> when
> > the submit button is pressed, it goes to a confirmation page that
contains
> a
> > back button that goes back to the page that called the form.
> >
> > Basically, I'm looking at a scenario where 10 pages can call the form,
but
> I
> > want to user to be able to click the back button and be returned to the
> page
> > they were on when they click on the link to the form.
> >
> > I thought that maybe using javascript:history.go(-2) would work, but if
> the
> > form is reloaded for any reason, gaing back 2 pages goes back to the
form.
> >
> > -- 
> > Posted 'as is'.  If there are any spelling and/or grammar mistakes, they
> > were a direct result of my fingers and brain not being synchronized or
my
> > lack of caffeine.
> >
> > Mike Brearley
> >
> >
>
>

Loading