If i select checkbox with 10 and 20 value from: <tr><td><input name="delete_all[]" type="checkbox" value="5"></td><tr> <tr><td><input name="delete_all[]" type="checkbox" value="10"></td><tr> <tr><td><input name="delete_all[]" type="checkbox" value="20"></td><tr> when i refresh the page i want to mantain the selection i made. I tryed with the variable: $delete_all_checked, which i start with "checked" only for the selected elements, but it doesn't work <tr><td><input name="delete_all[]" type="checkbox" $delete_all_checked value="5"></td><tr> <tr><td><input name="delete_all[]" type="checkbox" $delete_all_checked value="10"></td><tr> <tr><td><input name="delete_all[]" type="checkbox" $delete_all_checkedvalue="20"></td><tr> What can i do to stay selected also after refresh? Thanks!
I am sorry but I don't think you could that by just that. You'd have to have something to remember which one was checked... Cookies could solve it I think... although I haven't tried it yet.