Jump to content

Dynamic forms - DB table or file?


V

Recommended Posts

Please help me with some guidance. I want to allow users to create their own html forms by choosing different form elements (textfields, textareas, lists, ratios, etc) I guess something similar to http://wufoo.com/ but much more basic. I'm having some trouble deciding which approach I should take. Database tables or files?

 

For tables I was thinking to create a table for each form element, e.g

 

TEXTFIELD TABLE

ID

TEXTFIELD_NAME

USER

 

TEXTAREA TABLE

ID

TEXTAREA_NAME

USER

 

etc for all form elements

 

and then just query all of them with..

 

WHERE user=$user

 

Or should I generate php files on the server for each form created?

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.