Re: client redirection

From: Date: Wed, 18 Oct 2000 21:27:33 +0000
Subject: Re: client redirection
Groups: php.general 
Request: Send a blank email to php-general+get-20987@lists.php.net to get a copy of this message
Dear Scott, Meta tags will 'work' outside of the document <head>. I just tried it in NN 3.0 (I know, I'm on a crappy terminal here), and it redirected fine. It just goes against HTML spec, which means that nobody should get upset if suddenly that trick isn't supported by a specific browser anymore. You can use output buffering if you want. That way you build the page, including whatever headers you want to send, and you won't send *anything* to the browser (headers or content) until you execute a flush. See http://www.php.net/manual/function.ob-start.php But keep in mind Torben's comment about a timed redirection. --Matt ---------------------------------------------------------------- Matthew Leingang http://www.math.rutgers.edu/ Rutgers University leingang@math.rutgers.edu Department of Mathematics "This signature needs no quote." On Wed, 18 Oct 2000, Lars Torben Wilson wrote: > Scott Mebberson writes: > > What about if I want to write a successfull message to the client and then > > bounce them back to a "menu" page? > > > > Can I then use the meta data in the middle of the page?? > > Nope. But you can have the script figure out whether to print out a > success message or not before you start outputting anything, and > construct the page that way. > > BTW--if you want a timed redirection, AFAIK you're stuck with <meta> > tags. > > > -- > +----------------------------------------------------------------+ > |Torben Wilson <torben@php.net> Netmill iTech| > |http://www.coastnet.com/~torben > http://www.netmill.fi| > |Ph: 1 250 383-9735 torben@netmill.fi| > +----------------------------------------------------------------+ > > [ Part 8: "Included Message" ] >

« previous php.general (#20987) next »