Re: Re: clearing new pages
| From: | Craig | Date: | Thu, 27 May 2004 09:54:08 +0000 |
| Subject: | Re: Re: clearing new pages | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-187043@lists.php.net to get a copy of this message | ||
<?php
echo "Hello";
echo "<meta http-equiv=\"Refresh\"
content=\"2;url=b.php\">\n";
?>
Is another option
Craig
"Rick Fletcher" <rick@snocap.com> wrote in message
news:200405261950.i4QJol8h007187@d7.sfo.snocap.com...
> > > Hi,
> > > a file called a.php prints "hello" to the browser then calls
> > > b.php which prints "goodbye" to the browser.
> > > the output looks like this:
> > >
> > > hello
> > > goodbye
> > >
> > > how do I clear the screen so the end results looks like this:
> >
> > a.php:
> >
> > echo 'hello';
> > header('location: b.php'); exit;
>
> That actually wouldn't work, because once there's output ("echo") you
can't
> send a header.
>
> --Rick