Re: [PHP] Re: clearing new pages

2004-05-27 Thread Craig
?php
echo Hello;
echo meta http-equiv=\Refresh\ content=\2;url=b.php\\n;
?

Is another option

Craig

Rick Fletcher [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
   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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: clearing new pages

2004-05-26 Thread Torsten Roehr
Michael Young [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 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;

Regards,

Torsten Roehr

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: clearing new pages

2004-05-26 Thread Rick Fletcher
  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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: clearing new pages

2004-05-26 Thread John Kaspar
I put this at the top of long pages,
$processing = 
span id='processing'
processing, please wait ...
/span
;
echo $processing;
flush();
Then put this at the bottom,
$hide = 
script language='javascript'
if (document.layers) {
processing.visibility='hide'
} else if (document.all) {
document.all('processing').style.visibility='hidden'
} else {
document.getElementById('processing').style.display='none'
}
/script
;
echo $hide;
Works pretty good.
- John

On 5/26/2004 10:20 AM, Michael Young wrote:
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:
goodbye
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


RE: [PHP] Re: clearing new pages

2004-05-26 Thread Tyler Replogle
hey, you could use some jave script there
a.php:
echo 'hello';
echoscript language=\Javascript\ window.location = 
'http://www.yourwebsite.com/b.php';



From: Rick Fletcher [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: [PHP] Re: clearing new pages
Date: Wed, 26 May 2004 12:52:55 -0700
  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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_
Learn to simplify your finances and your life in Streamline Your Life from 
MSN Money. http://special.msn.com/money/0405streamline.armx

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php