$form->input in cakephp

hi, I'm trying to create a text box using the vales retrieved from the database. But instead of a text box, a select box (drop down box) is created. I do not understand why. I have given the type as text only, then why a select box is being created?

echo $form->input($r['Attribute']['label'], 
                  array('label' => $r['Attribute']['label'].'  * ',
                        'class' => 'required',
                        'id'    => $r['Attribute']['id'],
                        'name'  => $r['Attribute']['label'],
                        'type'  => 'text',
                        'style' => 'width:' . $r['Attribute']['size'] . 'px'));

This is the Attributes table with a few records.

id  form_id  label  type    size  sequence_no  required
2   1        Name   text    200   1            true
3   1        Age    number  200   2            true

The output of $form->input is

instead of

How does the input type get saved as "select" even when I explicitly mention it as "text"?