Okay...this is very very basic but I have not used sessions that often and have been through a few books with limited results.
Let's say I set pass a var to a session and set if submitted
if($submitrfq) {
$_SESSION['items'][]="$passed_variable";
}
Let's say the set session array is
apple[0]
orange[1]
I'll check for a set session set and loop.
if(isset($_SESSION['items'])) {
foreach($_SESSION['items'] as $key => $value) {
print("$value");
}
}
Great...everything printed
My problem is I'm not sure how to compare the session variable to check if a duplicate exists (say from a refresh).
I've checked all over to no avail...I've seen some close examples but not that involved arrays.