Re: passing variables between scripts?
| From: | Paul Procacci | Date: | Sat, 01 Sep 2001 01:01:06 +0000 |
| Subject: | Re: passing variables between scripts? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65559@lists.php.net to get a copy of this message | ||
Sessions would definately save the data. :)
Jon Thompson Coon wrote:
> 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