on-internet
← Community

Selection box insert multiple times in database

Stack Overflow ·

This is what the page looks like: And this is what the database looks like: Now, I had this all working with textfields. (When you press save, the text fields get inserted in the bogie_nr. Now, I don't want to have text fields but checkboxes. So, if I select the first 2 checkboxes, and press save. I want the database to insert the number 1 by the axle_nr 1 and 2. Now, I want the first 2 boxes to be disabled (So you can't check them again). Now when you select the 3rd and 4th box, and press save. I want the database to insert the number 2 by the 3rd and 4th axle_nr. When everything is filled in

Comments

Sign in or sign up to comment and upvote.

No comments yet.