I have seen/used this with other scripts, but never really understood how it worked. Could anyone provide an example where you can submit data into an array, and update it based on the selections made? For example, like a hidden form field could have the values "1,2,3,4", and explode these values to display them on the page:
However there can be a checkbox so if you want to remove the third one, it would update the value with "1,2,4". How is this done? Thanks.
Sweet thanks it works! As you may have figured I am using this as a shopping cart. So I can add those values into a session so the user can return to their cart and still have these values? In fact if it is not hard could you provide an example using a session? Thanks!