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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:25:39+00:00 2026-06-11T01:25:39+00:00

I have a form that dynamically generates elements in groups, so I cannot be

  • 0

I have a form that dynamically generates elements in groups, so I cannot be sure how many things I’m going to submit to the database everytime someone submits a form.

Form
  -name
  -age
  -incident (0)
  -incident description (0)
  -incident (1)
  -incident description (1)
  -incident (2....)
  -incident descritpion (2....)

and there are about 10 possible dynamically generated form element groups, so I was thinking I would make one table for the entire form, and one table each for the dynamically generated element groups in order.

formdata
name varchar(30)
age int(2)
incident0 sql
incdient1 sql

is that possible?
or is there a different way besides creating a whole bunch of columns in my table that i rarely use?
and if i create a whole bunch of columns would there be memory waste or would it not make a difference if theres not a lot of data submitted in those columns?

  • 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-11T01:25:40+00:00Added an answer on June 11, 2026 at 1:25 am

    The answer you seek is called schema normalization, and it is the quintessential feature of relational database management systems. The Particular concept is called a “one-to-many” relationship, where you have one “form” related to many incidents. This is accomplished by having one table just for incidents, and one of the columns in that table is a numeric reference to an id column in your forms table, thus each incident “knows” which form it belongs to.

    FORMS
    =======
    id
    name
    age
    
    INCIDENTS
    ============
    id
    form_id
    descrition
    

    Then the SQL can optionally use a join clause when selecting:

    SELECT forms.name, incidents.description
    FROM incidents
    JOIN FORMS ON (incidents.form_id = forms.id)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dynamic form that allow to add many fields dynamically, I Know
I have a form that has many dynamically generated checkboxes. At runtime, how can
The basic idea is this: I have a form that generates form fields dynamically
I have a dynamically generated form that I would like to submit using Ajax.
I have a Windows Form (C#) that dynamically generates copies of a User Control.
I have a web page that dynamically generates form HTML via JavaScript and pours
I have a form that is dynamically created, on this form are several radio
I have a Winforms application that dynamically instantiates external form objects for use in
I have a Greasemonkey script that dynamically inserts an HTML form into some web
I have several radio buttons that are dynamically populated on a form and I

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.