Welcome Guest, Not a member yet? Register   Sign In
Dynamic Form Input Boxes
#1

[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.


Messages In This Thread
Dynamic Form Input Boxes - by El Forum - 12-05-2009, 06:14 PM
Dynamic Form Input Boxes - by El Forum - 12-05-2009, 06:24 PM
Dynamic Form Input Boxes - by El Forum - 12-07-2009, 04:58 PM



Theme © iAndrew 2016 - Forum software by © MyBB