Refreshing php page every 5 secs WHILE SAVING INFORMATION
Refreshing php page every 5 secs WHILE SAVING INFORMATION
От:
Richie <dugganr@student.cs.ucc.ie>
Дата:
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 :
which worked OK (in Explorer, not in Netscape?? but thats another issue!)
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
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?
Thanks a million, I hope one day that I might be able to contribute to
this page but I can't see it happening for at least a few years, I have a
long way to go!
Richie
=========================================================
Richie Duggan
Computer Science IV
University College Cork
Eamil : dugganr@student.cs.ucc.ie richie_dug@yahoo.com
Homepage : http://student.cs.ucc.ie/01/dugganr/index.html
Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
От:
Vince Vielhaber <vev@michvhf.com>
Дата:
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 :
>
>
> which worked OK (in Explorer, not in Netscape?? but thats another issue!)
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
> 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)
Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
От:
"Adam Lang" <aalang@rutgersinsurance.com>
Дата:
I'd think you'd need to do something with Sessions to keep track of that value. So that way when the page reloads, it just pulls the value out of the appropriate session variable. Adam Lang Systems Engineer Rutgers Casualty Insurance Company http://www.rutgersinsurance.com ----- Original Message ----- From: "Richie" To: Sent: Thursday, March 22, 2001 1:29 PM Subject: [PHP] Refreshing php page every 5 secs WHILE SAVING INFORMATION > 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 : > > > which worked OK (in Explorer, not in Netscape?? but thats another issue!) > 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 > 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? > > Thanks a million, I hope one day that I might be able to contribute to > this page but I can't see it happening for at least a few years, I have a > long way to go! > > Richie > > > ========================================================= > Richie Duggan > Computer Science IV > University College Cork > Eamil : dugganr@student.cs.ucc.ie richie_dug@yahoo.com > Homepage : http://student.cs.ucc.ie/01/dugganr/index.html > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly
Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
От:
Grant <grant@conprojan.com.au>
Дата:
>
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 :
>
>
> which worked OK (in Explorer, not in Netscape?? but thats another issue!)
> 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
> 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?
>
> Thanks a million, I hope one day that I might be able to contribute to
> this page but I can't see it happening for at least a few years, I have a
> long way to go!
>
> Richie
>
>
> =========================================================
> Richie Duggan
> Computer Science IV
> University College Cork
> Eamil : dugganr@student.cs.ucc.ie richie_dug@yahoo.com
> Homepage : http://student.cs.ucc.ie/01/dugganr/index.html
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
От:
Grant <grant@conprojan.com.au>
Дата:
>
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 :
>
>
> which worked OK (in Explorer, not in Netscape?? but thats another issue!)
> 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
> 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?
>
> Thanks a million, I hope one day that I might be able to contribute to
> this page but I can't see it happening for at least a few years, I have a
> long way to go!
>
> Richie
>
>
> =========================================================
> Richie Duggan
> Computer Science IV
> University College Cork
> Eamil : dugganr@student.cs.ucc.ie richie_dug@yahoo.com
> Homepage : http://student.cs.ucc.ie/01/dugganr/index.html
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
От:
Vince Vielhaber <vev@michvhf.com>
Дата:
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 :
>
>
> which worked OK (in Explorer, not in Netscape?? but thats another issue!)
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
> 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)