Welcome Guest, Not a member yet? Register   Sign In
Methods of building form pages, are there more?
#1

[eluser]Unknown[/eluser]
Hello, I have recently started using CI, have to say it is very well documented. THat said I have a question concerning forms: form validation, and creation and repopulation.

at this page, http://ellislab.com/codeigniter/user-gui...ation.html
the example given is creating the input fields in the view file and the validators in the the controller
this method seems fine when you have only 4~5 fields,
my concern is, what do you do when you have 25+ fields that consist of textareas inputs select radios and checkboxes, the whole shabang

the other method that i have been testing is creating the fields in an array in the controller, form_label, form_textarea, form_dropdown, etc
than echoing these in my view page,
the trouble i have here is validation and repopulation,

any ideas, suggestions, alternative methods, cheers and thanks
vache
#2

[eluser]Nick_MyShuitings[/eluser]
Formation and Formatic were two libraries proposed that sped up building large forms, via the use of arrays to hold the form information. You might want to look at those to get some inspiration.
#3

[eluser]Cristian Gilè[/eluser]
Form Generation Library. This is a very cool library with a good documentation.

Cristian Gilè
#4

[eluser]cideveloper[/eluser]
FormIgniter is a web app that helps with this.




Theme © iAndrew 2016 - Forum software by © MyBB