creating text field in codeigniter

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

echo form_input($data);

// Would produce:





Comments