PDA

View Full Version : keep printed


devil_online
09-02-2004, 09:15 PM
Hi have this code, that I print two or more things ate a diferente time, and the page refreshs after 10 seconds.

<head>
<meta http-equiv="refresh" content="10">
</head>
<body>
<?php
$hour = 21;
$minute = 06;
if(date('H')==$hour AND date('i')==$minute)
{ echo "hi how are you."; }
$hour = 21;
$minute = 07;
if(date('H')==$hour AND date('i')==$minute)
{ echo "are you fine?"; }
?>


however it is possible to keep print in the page the information that was printed?

thanks

sad69
09-02-2004, 09:28 PM
I don't think you can do this with PHP.. not easily anyway.

You can check out this link:
http://www.codingforums.com/showthread.php?t=43698

You may be able to use that. Otherwise you can use pure client-side Javascript..

Sadiq.