note 47982 added to function.session-register
| From: | FoliotGerald at osu1 dot php dot net | Date: | Wed, 08 Dec 2004 03:59:29 +0000 |
| Subject: | note 47982 added to function.session-register | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-81509@lists.php.net to get a copy of this message | ||
Note on "Tümmel atop at bluewin dot ch"
>However, when I call the $_SESSION-variable, it is necessary to >use the same counter
>variable name.
> This will not work:
> $p=3;
> echo '<input type =text value
> ='.$_SESSION['titel[$p]'].'>';
> That one is ok:
> $i=3;
> echo '<input type =text value
> ='.$_SESSION['titel[$i]'].'>';
The reason is that PHP register variable in the form
titel[$i]' in the session file
and not in the forme titel[1] in the session file
----
Manual Page -- http://www.php.net/manual/en/function.session-register.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47982
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47982&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47982&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47982&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47982&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47982&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47982&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47982&report=yes
Search -- http://master.php.net/manage/user-notes.php