Re: Don't mean to be repetitive - Session Variables
| From: | Stuart Felenstein | Date: | Mon, 11 Oct 2004 15:20:40 +0000 |
| Subject: | Re: Don't mean to be repetitive - Session Variables | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-36731@lists.php.net to get a copy of this message | ||
I may have spoken too soon. Having one minor problem
with getting an array (from a multiple select) to
print out. Anyone see anything wrong here :
Here is registering session array:
if ( empty( $_SESSION['l_industry'] ) ) {
$_SESSION['l_industry']=array();
}
if ( is_array( $_REQUEST['LurkerIndustry'] ) ) {
$_SESSION['l_industry'] = array_unique(
array_merge( $_SESSION['l_industry'],
$_REQUEST['LurkerIndustry'] )
);
}
Here is my call:
echo $l_industry['0']."<br />";
echo $l_industry['1']."<br />";
echo $l_industry['2']."<br />";
echo $l_industry['3']."<br />";
echo $l_industry['4']."<br />";
echo $l_industry['5']."<br />";
Thank you,
Stuart