Ok, I’ve run into a slight problem
I’ve got a long list of objects, so much that I must paginate them for any kind of easy reading.
But now, I’m trying to add a compare functionality that will let me select a number of objects. When the ‘compare’ button is clicked, it will list the objects next to each other on a new page.
I do this by adding any checked objects to a session variable after the page is submitted. If the next or previous button is pressed, it submits the form to the page with the next 20 or so objects.
I can add the items fine, but my problem comes in when I want to go back and remove an object from the session variable after it’s already there.
This is because, if you deselect a checkbox and resubmit the form, it is no longer in the $_POST array.
Does anyone have any ideas on how to remove a deselected object from the session array?
If you need more info, I’ll be happy to provide it.
Jaelan