Maybe keep a record in the session of the URLs the user has gone to.
Just don't store the URLs with a hash-mark in them. Store them as an
array and it'd be easy to make a "back" like by just using the next to
last or last element of the array...

---John Holmes...

> -----Original Message-----
> From: -<[ Rene Brehmer ]>- [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 11, 2002 8:59 PM
> Subject: [PHP] How to navigate backwards in PHP ???
> This is really puzzling me ... I've tried finding the answer in the
> ... but sofar without luck...
> What I need to is simply to be able to make a go-back link that points
> the URL that contains the page that had the link that send the user to
> current page ... (did that make sense?)
> Or to put it another way: I need to be able to have a link on page A,
> point to page B, and then have page B know the exact URL of page A
> (including all variables that's needed to build page A).
> The thing is that simply using <a href="javascript:history.go(-1)">
> doesn't work because the internal links adds the hash-mark (#) after
> URL, and then the browser needs to go one more step backwards for each
> time the user clicks on an internal link ...
> I could easily write a JS function to handle all of this, but my goal
> to not use any JS at all, and really, this is something that ought to
> easily doable in PHP ... only I can't figure out how ... does it have
> something like Document Referrer ??? which could contain the URL of
> sender, which I'd then be able to plump into a variable, which could
> be used when generating the links to go back to the sender page...
> Rene
> --
> Rene Brehmer
> System developer in the making...
> This message was written on 100% recycled spam.
> My website:
> Babes and computer & internet references...
> --
> PHP General Mailing List (
> To unsubscribe, visit:

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to