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

  • From: Frank Jørgensen <frank@xxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Sat, 16 Jun 2012 13:22:24 +0200

>> 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.

-- 
Med venlig hilsen
Frank M.G. Jørgensen
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: