Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7542057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:03:47+00:00 2026-05-30T08:03:47+00:00

I have multiple checkboxes on a web page. That is, I have 4 different

  • 0

I have multiple checkboxes on a web page. That is, I have 4 different categories of checkboxes. For example, I have those categories:

  1. decoration
  2. entertainment
  3. catering
  4. security.

Each of these have about 5 or more checkboxes.

How do I proceed to save them into a DB? I am using MySQL and JDBC.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T08:03:48+00:00Added an answer on May 30, 2026 at 8:03 am

    I’d say make them attributes of whatever your form is representing in the database.

    In plain English: make them BOOL values, in the same table that you’re saving to when the user presses the “Submit” button (or whatever you’re giving them in the servlet).

    UPDATE

    Okay, so if your users can only be one of each:

    user_types
    ==========
    ut_id        int pk auto_incr
    ut_code      varchar(4)
    ut_desc      varchar(127)
    
    user_type_details
    =================
    ut_det_id    int pk auto_incr
    ut_id        int fk references user_types
    ut_det_code  varchar(4)
    ut_det_desc  varchar(127)
    

    Your entries would look something like this:

    SELECT * FROM user_types;
    
    ut_id    ut_code    ut_desc
    =====    =======    =======
    1        DECO       decoration
    2        ENTR       entertainment
    3        CATR       catering
    4        SECR       security
    
    
    SELECT * FROM user_type_details WHERE ut_id = 2;
    
    ut_det_id   ut_id    ut_det_code   ut_det_desc
    =========   =====    ===========   ===========
    7           2        D.J.          dj
    8           2        SNGR          singer
    9           2        DNCR          dancer
    10          2        GTRS          guitarist
    

    And so on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have an html page where i have multiple checkboxes each of them are
I have multiple html checkboxes that all have different names. What I have to
I have a form that has multiple categories. They are separated by checkboxes, so
I have multiple checkboxes in a form. Based on clicking those checkboxes, I show
I have dynamic page. There are multiple checkboxes & I am using this script
I have multiple sliders on a page each with class slider and each is
I have 1 form in with multiple checkboxes in it (each with the code):
I have multiple tables on my page that contain a checkbox. Immediately following the
I have multiple checkBoxes on my page and using javascript I want to find
I have a Rails 2.3 web application that uses the collection_select helper with :multiple

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.