note 27095 added to ref.session
| From: | Jester at free2code dot net | Date: | Fri, 22 Nov 2002 16:50:47 +0000 |
| Subject: | note 27095 added to ref.session | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-39865@lists.php.net to get a copy of this message | ||
Well if you save an arra yin the $_SESSION array it'll be passed frm page to page.
$_SESSION['var'] = array(1, 2, 3, 4);
Will make $_SESSION['var'] an array.
You can also pass arrays to scripts via a form, like so:
<form action="script.php" method="post">
<input type="radio" name="array[]">
<input type="radio" name="array[]">
<input type="radio" name="array[]">
<input type="radio" name="array[]">
</form>
Now all the values from all of the radio buttons would be available in
$_POST['array']
Which is an array in itself.
--
http://www.php.net/manual/en/ref.session.php
http://master.php.net/manage/user-notes.php?action=edit+27095
http://master.php.net/manage/user-notes.php?action=delete+27095
http://master.php.net/manage/user-notes.php?action=reject+27095