If you have already sent output to the browser, then you won't be able to use the PHP header() command to redirect the browser.
There are a couple of ways around this, though; look into the META tag in HTML, or you can use JavaScript to redirect the browser. If what you want to do is send all users to the same original page, but then send certain users to another page if the "if" condition is met, then use PHP to generate the META tag... if (condition) { print("<meta-equiv=\"Refresh\" content=\"15\"; URL=\"http://my.page.com\">"); } I've done that before. It's a pretty useful feature. Andrea Caldwell wrote: > Sorry, I'm new at this... > > I have already sent output... any way to do this? > > Thanks again, > Andrea > > "Ing. Daniel Manrique" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >>>Can anyone advise or direct me to the documentation that references how >>> > to > >>>send a user to a URL if an 'if' statement is satisfied? >>> >>Assuming you hadn't sent any output before: >> >>if ($condition){ >>header("Location: http://wherever.com"); >>exit; >>} >> >> > > > -- Sliante, Richard S. Crawford mailto:[EMAIL PROTECTED] http://www.mossroot.com AIM: Buffalo2K ICQ: 11646404 Yahoo!: rscrawford MSN: [EMAIL PROTECTED] "It is only with the heart that we see rightly; what is essential is invisible to the eye." --Antoine de Saint Exupery "Push the button, Max!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]