Welcome Guest, Not a member yet? Register   Sign In
Form Help
#1

[eluser]BenSeagrave[/eluser]
Just watched the tutorial on the codeigniter site about making the blog. When making the form for the comments, he doesn't use functions like form_input() or form_textarea(). Is this for a reason or were the functions recently added. Also, how would I go about making a text area with form_input field. I tried to use the user guide but I didn't really understand as it doesn't declare anywhere that it's a text area.

example from user guide:

Code:
$data = array(
              'name'        => 'username',
              'id'          => 'username',
              'value'       => 'johndoe',
              'maxlength'   => '100',
              'size'        => '50',
              'style'       => 'width:50%',
            );

echo form_input($data);

// Would produce:

<input type="text" name="username" id="username" value="johndoe" maxlength="100" size="50" style="width:50%" />


I don't understand why this would come out as a text input field?
Thanks


Messages In This Thread
Form Help - by El Forum - 07-21-2011, 09:30 PM
Form Help - by El Forum - 07-22-2011, 02:06 AM
Form Help - by El Forum - 07-22-2011, 03:38 AM
Form Help - by El Forum - 07-22-2011, 09:54 AM
Form Help - by El Forum - 07-22-2011, 02:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB