Re: Redirection

From: Date: Thu, 27 Nov 2003 05:13:54 +0000
Subject: Re: Redirection
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-22219@lists.php.net to get a copy of this message
Rasmus, Thanks, but, what if, I've just gone through an set variables and outputed the contents of those to PHP, just to run up a SQL query, to authenticate a user. Set another to say they are authenticated, then I want to take the user to another page? What PHP method would I use in this case. Col "Rasmus Lerdorf" <rasmus@php.net> wrote in message news:Pine.WNT.4.56.0311262103230.3676@DELL... > You have to put this before any other output on the page. > > -Rasmus > > On Thu, 27 Nov 2003, PETCOL wrote: > > > Newbie questions again. > > > > In ColdFusion I'd use a <CFLOCATION> tag to push the user to another page or > > location....... > > > > In PHP I've read you can use a: > > > > <?php > > header("Location: > > http://domain/virtual/yourpage.php"); > > exit; > > ?> > > > > However, when ever I've tried this I keep getting errors something like: > > "Warning: Cannot modify header information - headers already sent by(page > > I'm working on)" > > > > Suggestions? > > > > Col > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.windows (#22219) next »