Re: Sending Variables to a new page

From: Date: Fri, 22 Nov 2002 08:17:26 +0000
Subject: Re: Sending Variables to a new page
References: 1  Groups: php.lang 
Request: Send a blank email to php-lang+get-416@lists.php.net to get a copy of this message
Hi Kris,
I want to send variables from one page to another page. How can I go about this??? I don't want to use a form. Or if using a form I don't want the user to have to hit the submit button.
You can use session for this. Just call session_start() on the top of the script and but the values you're need in other pages into the $_SESSIONS array. Then goto the next page, call session_start() at the top again, and get the values out of the $_SESSION array. The session works with cookies. If the user hasn't cookies enabled you should pass the PHPSESSID via GET var in the URL. Greetings

« previous php.lang (#416) next »