I'm facing a very unusual stuff with $form in D5
Look at this simple example:
$result = db_query('select name from {table} where tid=1');
$row=db_fetch_array($result);
$form['group']['name'] = array(
'#type' => 'textfield',
'#default_value' => $row['name'],
'#description' => $row['name'],
);
The textfield SHOWS NOTHING !! but description does!!!
If I try
'#default_value' => 'test ' . $row['name'],
only test apears!
I even test with
'#value' => $row['name'],
THEN, the name apear!!!!!
Very weird, thats a bug ?? I will mess around drupal source :)
regards
Feijó