[eluser]noCodeMonkeys[/eluser]
Hi All,
I have only found this topic addressed in 2 threads in my internet searches. Neither quite addressed my issue.
I am creating a dynamic form so the name attribute has to be an array. Unfortunately the form validation kicks out the []. I have tried everything I can think of but I can not get it to run with CI. I want to take advantage of the CI validation features.
CI Code that does not work.
$username = array('id'=>'username', 'name' => username[], 'value'=>set_value('username') );
Non-code igniter works fine
$name=$key."[]"; //get "disallowd key characters err if don't define name this way $form_field = "<input ID=\"questions\" class=\"\" name=\"$name\" value=\"$field_q\" >";
Any help on this will be greatly appreciated. I am sure this is not a unique issue.