Jump to content

Creating forms


zero_ZX

Recommended Posts

Hi,

So I would like my users create their own forms using my website. Other users of the website can then fill out the form.

I was thinking about how to do this, and came up with some examples, first one is probably the most easy one, simply to have a table in the db called forms, containing, who owns it, if it's active etc. Then have one called form_elements that contained and element id, what assigned form, and what type of element is (drop-down, checkbox, textarea etc.)

Then for each form created i create a <form-name>_answers that contain all the submissions for a particular form.

I dunno if this is a good idea, I don't think it's used much, but very unsure.

 

The second looks like the second, except that instead of all forms having their own answer table, i have a single answer table, and just store the entire response in an array.

 

Any advice, suggestions, or ideas are greatly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.