Date: 08/31/01
- Next message: Rui Barreiros: "[PHP] sessions problems :/"
- Previous message: Jason Bell: "Re: [PHP] chmod failed: Operation not permitted"
- In reply to: Jon Thompson Coon: "[PHP] passing variables between scripts?"
- Next in thread: Paul Procacci: "[PHP] Re: passing variables between scripts?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
----- Original Message -----
From: Jon Thompson Coon <jon.thompson <email protected>>
To: <php-general <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: php-general-unsubscribe <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Rui Barreiros: "[PHP] sessions problems :/"
- Previous message: Jason Bell: "Re: [PHP] chmod failed: Operation not permitted"
- In reply to: Jon Thompson Coon: "[PHP] passing variables between scripts?"
- Next in thread: Paul Procacci: "[PHP] Re: passing variables between scripts?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

