[dokuwiki] Re: How to go [back] to a page in PHP code?

  • From: Chris Green <cl@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 16 Jun 2012 17:28:55 +0100

On Sat, Jun 16, 2012 at 01:22:24PM +0200, Frank Jørgensen wrote:
> >> First, you get a "Referer" header with the HTTP Request, so accessing
> >> something like $_SERVER['HTTP_REFERER'] should give you the page you
> >> are coming from.
> >>
> > I already have the "page you are coming from", my problem is how to go
> > back to it!  :-)
> >
> 
> If your PHP script does not produce output, you could use
> 
> header('Location: url-to-goto');
> 
> after data has been inserted into the database.
> 
Ah, thank you, exactly what I need.

-- 
Chris Green
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: