Re: Sending Variables to a new page
[email protected] (Oliver Hinckel) Fri, 22 Nov 2002 09:17:26 +0100
| Newsgroups | php.lang |
|---|---|
| Message-ID | <[email protected]> |
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