note 21311 deleted from ref.session by sniper
| From: | sniper@php.net | Date: | Sun, 28 Jul 2002 00:56:23 +0000 |
| Subject: | note 21311 deleted from ref.session by sniper | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-33756@lists.php.net to get a copy of this message | ||
BEGINNERS:
I want to correct one thing, and add another.
Firstly, if you change a variable after you register it (using
session_register('variable_name'), the effects WILL be passed to the next page. My
mistake, so sorry.
Second, my friend's code still didn't work so I looked at it. His problem was how he
registered his variable:
session_register($content[1]); // WRONG!!!
You shouldn't put the dollar sign, and the variable name should be put in quotes, like this:
session_register('content'); // RIGHT!!!
He really wanted to pass only the second part of the array content, but since I really don't
know how, I would recommend sending the whole thing.
Good luck! -BadAssFrey