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)