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 8640311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:14:54+00:00 2026-06-12T11:14:54+00:00

I have to develop a web system. As every web system it has forms

  • 0

I have to develop a web system. As every web system it has forms where the users will have to select one from many options, or many options altogether. They will also have a descriptive text and that data will be used in other parts within the system. So, it’s data to be stored in a database in an information system. However, I don’t know what’s the best practice regarding multiple options.

Let me give you an example. Suppose I have the following:

<select>
    <option value="1">My first option</option>
    <option value="2">My second option</option>
    <option value="3">My third option</option>
</select>

This data is related to, say, a person. How do I represent this on my database? Should I use a separate table with the value id as the PK and a string with the description? Should I store the value only, the string only? I’m a bit lost here.

Thank you beforehand.

EDIT: My main concern is that creating an extra table will be a hassle. I’ll have to create a related object with its corresponding DAO that only one class will be using. However using other methods seems like it won’t escalate well and will create an overall mess.

  • 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-06-12T11:14:55+00:00Added an answer on June 12, 2026 at 11:14 am

    Nevermind, I got my answer.

    What I can do, instead of everything, and since I’m working in Java, is to use an enum instead. The data is unlikely to change in the long run, so this is my safest bet.

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

Sidebar

Related Questions

I have develop one web site in php. I know how to upload it
We will develop a web site that will have some free services and we
I'm going to develop a web-based system with MVC4 which will use web services
I have been asked to develop an application which will use data available from
I have a large .NET web application. The system has projects for different intentions
I'll soon have to develop a web portal accessing a couchDB. Of course, I
I have been asked by my supervisor to develop a web application using either
I'm trying to develop a web application with Novell LDAP Authentication . I have
I have the 'luck' of develop and enhance a legacy python web application for
We have a web site with domain http://209.59.154.150/~phnxaudi/ ,. To develop this website we

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.