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
https://forums.phpfreaks.com/topic/259996-creating-forms/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.