I have a page which list all records from a table (for example 'Users'). At the beginning of each row (each record), I have a check box to select that row and below the table is the Submit button (let call this page 1)
After click the Submit button, the POST data of the form is an array of 'user_id' Also go to a page which has something like "Are you sure you want to delete these users?", below is the list of user_id will be deleted. And below all that are the "Delete" and "Cancel" buttons. (let call this page 2)
Now I want when I click the "Delete" button, all user with values in array 'user_id' will be delete. The problem is I don't know how to pass value from page 2 to the deleteAction (because there is no form, and also it's an array of 'user_id' so I can't use the routing like user/delete/1...)
Do you have any idea how I can do that? Thank you very much