Welcome Guest, Not a member yet? Register   Sign In
CI form help
#1

[eluser]UdayD[/eluser]
I just read that to write a form input i have to write as below:
Code:
$data = array(
              'name'        => 'username',
              'id'          => 'username',
              'value'       => 'johndoe',
              'maxlength'   => '100',
              'size'        => '50',
              'style'       => 'width:50%',
            );

echo form_input($data);
but if i have to write 10 inputs with same length, size and style.
how will i do that do i need to make ten different arrays and the pass them to
echo form_input($array1);...
how will i do this?? is their a simpler way?
Thanks in advance


Messages In This Thread
CI form help - by El Forum - 06-17-2010, 06:47 PM
CI form help - by El Forum - 06-17-2010, 07:02 PM
CI form help - by El Forum - 06-18-2010, 02:14 AM
CI form help - by El Forum - 06-18-2010, 03:47 AM
CI form help - by El Forum - 06-18-2010, 03:56 AM
CI form help - by El Forum - 06-18-2010, 05:04 AM



Theme © iAndrew 2016 - Forum software by © MyBB