CodeIgniter Forums
How to create textarea in CI ? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: How to create textarea in CI ? (/thread-54741.html)



How to create textarea in CI ? - El Forum - 09-23-2012

[eluser]nencor[/eluser]
i got an error like this

Severity: Notice

Message: Undefined index: name

Filename: helpers/form_helper.php

Line Number: 264

here is my code

Code:
<?php $data = array(
                                'class' => 'textbox',
                                'id' => 'keterangan',
                                'cols' => '2',
                    );
                                echo form_textarea($data);
                    ?>

what went wrong ?

update : so textarea need 'name' parameter. solved


How to create textarea in CI ? - El Forum - 09-23-2012

[eluser]solid9[/eluser]
The variable 'name' in your array is missing.