From: | Vince Vielhaber <vev(at)michvhf(dot)com> |
---|---|
To: | Richie <dugganr(at)student(dot)cs(dot)ucc(dot)ie> |
Cc: | <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION |
Date: | 2001-03-22 20:22:42 |
Message-ID: | Pine.BSF.4.30.0103221509330.61736-100000@paprika.michvhf.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
On Thu, 22 Mar 2001, Richie wrote:
> Hi
>
> I have a php page that I need to be rereshed every 5 seconds to make sure
> that the information displayed is up to date. I tried the Refresh Meta
> tag :
> <META HTTP-EQUIV="Refresh" CONTENT=5>
>
> which worked OK (in Explorer, not in Netscape?? but thats another issue!)
<meta HTTP-EQUIV=Refresh CONTENT="5;URL=index.php">
I think netscape requires the URL part.
> BUT it doesn't work properly to my needs. You see suppose the page that I
> want refreshed is called bidForHouse.php, well bid.php contains a <FORM>
> which passes in a variable $id to bidForHouse.php, it works grand the
> first time it loads up, i.e. it has obtained what the value of $id is and
> can act accordingly but when the refresh comes into operation it is like
> the value of $id got lost and is set to null, thats my problem!
>
> Any ideas on how to save the value of $id before refreshing?
Pass it on the command line. Take this part of the above refresh line:
URL=index.php
and make it
URL=index.php?$id
And look for $argv[0] at the top of the script.
Vince.
--
==========================================================================
Vince Vielhaber -- KA8CSH email: vev(at)michvhf(dot)com http://www.pop4.net
56K Nationwide Dialup from $16.00/mo at Pop4 Networking
Online Campground Directory http://www.camping-usa.com
Online Giftshop Superstore http://www.cloudninegifts.com
==========================================================================
From | Date | Subject | |
---|---|---|---|
Next Message | Naomi Fullam | 2001-03-23 20:30:27 | format date retrieved from database |
Previous Message | Dan Wilson | 2001-03-22 19:33:45 | Re: Converting POSTGRESQL timestamp to UNIX timestamp |