Re: passing variables between scripts?

From: Date: Fri, 31 Aug 2001 19:01:33 +0000
Subject: Re: passing variables between scripts?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-65541@lists.php.net to get a copy of this message
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 - pgerzson@freestart.hu ----- Original Message ----- From: Jon Thompson Coon <jon.thompson@helsinki.fi> To: <php-general@lists.php.net> 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#65541) next »