a little stumped here!
I have a page of options on a from which are dynamically created from the DB, so i've no idea how many options will be passed to the next page, could 1 or 100.
On the following page i need to convert the $_POST in to a Session variable, to anaylse it and remember it for other pages, but i've tried using
Code: Select all
array_merge()Code: Select all
$_SESSION = array_merge($_SESSION, $_POST);which works a treat the first time a user moves to the second page, but if they go back and change their mind (which they probably will) i need to pull the new $_POST vars into the session varialbes. However, the array_merge fucntion only appends, i need to remove items which weren't in the $_POST.
Any ideas how to do this? (if of course i've explained myself properly! )
Thanks