CodeIgniter Forums

Full Version: How to create textarea in CI ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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

El Forum

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