I am creating a trouble ticket system in php using an odbc connection to a sql database. There are tables for users, statuses, and categories which are user defineable. There is also a table to hold the trouble tickets. All the tickets are displayed in a table (1 ticket = 1 row).
I have a form with checkboxes before I list the tickets allowing the user to filter based on status. This form is dynamically created based on the information in the statuses table. I also have hyperlinks which pass variables as the headings for each column which allows the user to sort the information.
My problem is that whenever I click one of these hyperlinks the post data from the filter form is lost and the default display options come back. I need someway to pass the information from the checkboxes from the page back to itself (keep in mind the checkboxes don't have static names and the number of them could change).
My only thought is to put the data into an array and define it as a session variable (this will force me to rewrite a bunch of code). I was just wondering if there was another way to get them passed as post variables along with the get variables defined in the column headers.