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

i got an error like this

Severity: Notice

Message: Undefined index: name

Filename: helpers/form_helper.php

Line Number: 264

here is my 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

The variable 'name' in your array is missing.