I think, the built-in session management can solve your problem:
http://www.php.net/manual/en/ref-session.php

Briefly, you should register your variable into the session and after
reloading the page you can get it back.

peculiarly:
http://www.php.net/manual/en/function-session-register.php

hth,
Papp Gyozo
- [EMAIL PROTECTED]

----- Original Message -----
From: Jon Thompson Coon <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, September 01, 2001 4:14 AM
Subject: [PHP] passing variables between scripts?


> I can't cope the fact that I loose my variables every time I reload the
> page. If someone could point me to the right direction, I'd be grateful.
>
> Present problem:
>
> I have a script that has some globals (surprise). Within this script,
> pretty deep in a function call tree, a function saves a query into an
> array and saves it to a global. Then an user makes an selection and the
> script reloads itself. After this I'd like to my hands on the saved
> query, but the global variable where it's saved seems to get initialised
> on reload. How to get around this? Sessions? I'm pretty new (a
> forthnight and wery little documentation) to server side programming, so
> I'm probably misunderstanding some basics.
>
> Most of my problems are related to this area, so anyone bold enough to
> anwer will probably pounded with several questions more.
>
> Thank you in advance
> Jon Thompson Coon
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to