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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:42:41+00:00 2026-06-12T16:42:41+00:00

I have an interesting problem that I’ve been trying to simplify. I have a

  • 0

I have an interesting problem that I’ve been trying to simplify. I have a telecommunications client who has several sign-up forms – each representing a different program/offer. Each form is essentially the same, but some have form fields that others do not. As you can imagine, this is a nightmare both in the database and in the CRUD code.

Right now as it stands, each form is processed individually and goes into a dedicated MySQL table for each application form. So horrifically, each application has a separate CRUD code. I wish to defer to the experienced as to how to best handle this situation.

I thought about parsing the form elements into CSV. I’d define a schema of sorts that identifies the elements so the CRUD can easily work off one table. However this is an issue because sometimes these form elements change which can make it difficult to keep everything organized and clean. I also though about having a base form with standard elements, then forms that are requiring different elements would be stored elsewhere with some FK.

I’m really at a loss as to what I could do to make this easier. I hate having several tables for applications, and several CRUDs for processing…

TLDR; How can I best manage processing/storing several unique/rather large (20 so elements) forms in a database and implement CRUD on them.

Thanks for your time.

EDIT I also just thought about implementing JSON or XML which would define the form elements and accepted data types. This could be modified by the system, and upon saving, could generate a cached HTML form page and updated SQL code for each application. That way, I can solve the editing problem. However, based on this implementation, I’d still need several tables.

  • 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-12T16:42:42+00:00Added an answer on June 12, 2026 at 4:42 pm

    One way to accomplish this would to be to have a base table that defines just a few fields common to all the forms, including some kind of ID. Then you have a separate table that stores all of the rest of the form data by name and value for each form. In effect, you have an object number, and then a set of attribute names/values for each piece of data in the form.

    CREATE TABLE submission {
        submission_id INT,
        creation_date DATETIME
    };
    
    CREATE TABLE submission_attributes {
        submission_id INT,
        attr_name VARCHAR(50),
        attr_value VARCHAR(255)
    };
    

    The trick here is to have a general-purpose hydration function that can turn any submission into a useful PHP object or array (whichever you prefer working with).

    Since your database only deals in strings, your validation functions will need to be up to the task of knowing what is a valid submission and what isn’t. You won’t be able to depend on your database to reject invalid data.

    Another approach is to use an object database. My favorite is MongoDB, which lets you store arbitrarily complex data as JSON, and even index/search by deeply-nested object attributes. But there are other tools that will get the job done, too.

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

Sidebar

Related Questions

I have an interesting problem here I've been trying to solve for the last
I have an interesting problem, that i am sure has a simple answer, but
I have an interesting problem here. I have a MySql database table that has
So I have an interesting problem that's been the fruit of lots of good
I have an interesting problem that I'm trying to solve and was wondering if
I have an interesting SQL problem that I need help with. Here is the
I have an interesting genetics problem that I would like to solve in native
I have an interesting problem. The basis of the problem is that my last
We have an interesting problem with WCF binding and streaming transfer mode that we
I have an interesting problem, which is a function that returns a Dictionary<String,HashSet<String>> .

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.