Dynamic Form Builder with CodeIgniter [closed]

不羁岁月 提交于 2019-12-11 02:27:58

问题


I am planning to build a dynamic form for different form layout with

http://bootsnipp.com/forms?version=3

I wanna do this with CodeIgniter PHP framework. Frontend section of builder like this link. Backend section some problem

  1. I wanna save in database a created form layout built with this builder. This is completed
  2. When i want to use this saved form layout a lot of problem occurs. 2.1 How can i control form element in codeigniter like form validation because all of form element name dynamically created 2.2 How can i store in database this dynamic value ? I can't design my database for saving dynamic value

回答1:


I created a formbuilder years ago and used 3 tables:

tblForms

Hold's the meta informations of the forms, like name, etc.

tblFormDetails

Hold's the form element info's like type, name, rules. Each element in one row. tblFormDetails references to tblForms.

tblFormData

Hold's the values. Each value in one row. It references to tblFormDetails and has a requestId for grouping the values per form.



来源:https://stackoverflow.com/questions/27973451/dynamic-form-builder-with-codeigniter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!