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

  • Home
  • SEARCH
  • 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 7613815
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:14:44+00:00 2026-05-31T02:14:44+00:00

I need help on both the visual and the programmatic end of this one.

  • 0

I need help on both the visual and the programmatic end of this one. Ok, so I’m allowing the user to edit certain rows pertaining to his unique ID. When the user clicks edit, it shows all of the rows in the user table that contain his specific ID (see below for the table layout). Furthermore, a checkbox is generated for each class the user appears in (again based on the user_id field).

tbl_user
user_id  |  user_name
1        |  Evan

tbl_class
user_id  |  class_id
1              1
1              2 

This is what the edit form currently looks like:


| TEXT-BOX  |  For user_name

| CHECKBOX value="1"  |  For EACH class found
| CHECKBOX value="2"  |  For EACH class found

When the form is submitted, I was going to check to see if the values of any of the boxes were unchecked; if they were, I would remove the corresponding tbl_class row (wherever the class_id matched up).

Two problems I’ve encountered using this method:

  1. If the checkbox is unchecked, its value does not come through the form (so it seems)
  2. This isn’t so much a problem as it is an annoyance- is there a better way to go about doing this? I really hate the design.

I would appreciate help with either of the above questions.

Thank you!

Evan

  • 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-31T02:14:45+00:00Added an answer on May 31, 2026 at 2:14 am

    http://postimage.org/image/e1sny3dcx/

    I have uploaded an image at above link, of what i think a more user friendly design.
    On Edit user details page, user can edit his user name through text box.
    Also ‘Available Class ids’ are shown in list box with multiple select option and ‘Selected class Ids to Remove’ will contain the Ids user wishes to remove. The button ‘>>’ this in between transfers the selected class id from ‘Available class id’ list box to ‘Selected Class Ids to remove’ list box , while button ‘<<‘ does the vice verse.
    It also give you flexibility if you tomorrow wants to identify the new class ids to add.
    you can simply add on some event to the Available Class Ids List.
    The design gives you advantage to clearly identify through form elements which are the class id’s you want to remove.I would recommend this approach in case there a more class_id’s pertaining to a user_id.

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

Sidebar

Related Questions

I need help with one of the Groovy 1.8 DSL features. Consider this test
Need help writing a script downloads data from google insight using c# this is
I need help on this following aspx code aspx Code: <asp:Label ID =lblName runat
I need help with this route map routes.MapRoute(Blog_Archive, Blog/Archive/{year}/{month}/{day}, new { controller = Blog,
i need help with disk_total_space function.. i have this on my code <?php $sql=select
I really need help on this because I lost my hopes to correct the
I need help with parameteres. Do both of these function definitions do the exact
I need help on authenticating users based on their location. The problem is this:
i need help with this problem... I have two lists of same objects SearchResult,
Just need help as I have been trying sort this out for ages now.

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.