Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION - Mailing list pgsql-php

From Vince Vielhaber
Subject Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
Date
Msg-id Pine.BSF.4.30.0103221509330.61736-100000@paprika.michvhf.com
Whole thread Raw
In response to Refreshing php page every 5 secs WHILE SAVING INFORMATION  (Richie <dugganr@student.cs.ucc.ie>)
List 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@michvhf.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
==========================================================================




---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
    (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)




pgsql-php by date:

Previous
From: "Adam Lang"
Date:
Subject: Re: Re: php, postgres, ssl
Next
From: "Adam Lang"
Date:
Subject: Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION