Chris Val Kef Posted November 23, 2006 Share Posted November 23, 2006 can i POST all checked and unchecked ckeckboxes in one table somehow?i think that $_POST keeps a table only with the checked ones.i got this kind of form with multiple checkboxes: <input type="checkbox" name="check[]" value="{CLASS_ID}" {CHECKED}> all i want to do is to: a. if is ckecked then insert somehing in db d. is it was checked and user unchecked it then delete something from dbhope someone got it! Quote Link to comment Share on other sites More sharing options...
kenrbnsn Posted November 23, 2006 Share Posted November 23, 2006 Only checked checkboxes are returned to your processing script, so unless you save the previous state of the checkboxes you won't be able to do what you want.Just a comment on your idea... That is a bad user interface. The insert and delete action should be control via different check boxes. A delete should be the result of a positive action by a user.Ken Quote Link to comment Share on other sites More sharing options...
Chris Val Kef Posted November 24, 2006 Author Share Posted November 24, 2006 thanx for the advise! i think i'll change the interface and it will be much easier for the implementation too!thanx again Ken! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.