pg.ddx.io pgsql-php@postgresql.org mailing list archive
help / color / mirror / Atom feedRefreshing php page every 5 secs WHILE SAVING INFORMATION
4+ messages / 4 participants
[nested] [flat]
* Refreshing php page every 5 secs WHILE SAVING INFORMATION
@ 2001-03-22 18:29 Richie <dugganr@student.cs.ucc.ie>
0 siblings, 3 replies; 4+ messages in thread
From: Richie @ 2001-03-22 18:29 UTC (permalink / raw)
To: pgsql-php
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!)
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?
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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
@ 2001-03-22 19:08 Adam Lang <aalang@rutgersinsurance.com>
parent: Richie <dugganr@student.cs.ucc.ie>
2 siblings, 0 replies; 4+ messages in thread
From: Adam Lang @ 2001-03-22 19:08 UTC (permalink / raw)
To: pgsql-php
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" <dugganr@student.cs.ucc.ie>
To: <pgsql-php@postgresql.org>
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 :
> <META HTTP-EQUIV="Refresh" CONTENT=5>
>
> 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 <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?
>
> 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
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
@ 2001-03-22 20:22 Vince Vielhaber <vev@michvhf.com>
parent: Richie <dugganr@student.cs.ucc.ie>
2 siblings, 0 replies; 4+ messages in thread
From: Vince Vielhaber @ 2001-03-22 20:22 UTC (permalink / raw)
To: Richie <dugganr@student.cs.ucc.ie>; +Cc: 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
==========================================================================
^ permalink raw reply [nested|flat] 4+ messages in thread
* Re: Refreshing php page every 5 secs WHILE SAVING INFORMATION
@ 2001-03-26 00:13 Grant <grant@conprojan.com.au>
parent: Richie <dugganr@student.cs.ucc.ie>
2 siblings, 0 replies; 4+ messages in thread
From: Grant @ 2001-03-26 00:13 UTC (permalink / raw)
To: Richie <dugganr@student.cs.ucc.ie>; +Cc: pgsql-php
<INPUT TYPE=HIDDEN NAME=id VALUE=<?php echo $id; ?>>
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!)
> 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?
>
> 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
>
^ permalink raw reply [nested|flat] 4+ messages in thread
end of thread, other threads:[~2001-03-26 00:13 UTC | newest]
Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-22 18:29 Refreshing php page every 5 secs WHILE SAVING INFORMATION Richie <dugganr@student.cs.ucc.ie>
2001-03-22 19:08 ` Adam Lang <aalang@rutgersinsurance.com>
2001-03-22 20:22 ` Vince Vielhaber <vev@michvhf.com>
2001-03-26 00:13 ` Grant <grant@conprojan.com.au>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox