I would like to save the items in my array by using a session variable
$SignType = $_POST['SignType'];
//for the first time
if(!IsSet($_SESSION['ASign'])){
$ASign = array();
}
//all other times
else{
$ASign = $_SESSION['ASign'];
}
array_push($ASign, $SignType);
$currentitem = reset($ASign);
while(current($ASign) != false){
$currentitem = current($ASign);
print("$currentitem <BR>");
next($ASign);
}
$_SESSION['ASign'] = $ASign;
$result = count($_SESSION['ASign']);
print("The number of items in the array $result");
I am using count() to see how many items exist in the array, it always says 1. Any ideas?