hi all
i have a themed form and all dispalys fine but i cant seem to be able to change the value of the textfield elements here my code
<?php
function mymodule_form_awards () {
$checkboxes = array();
$rows = "SELECT * FROM {award_types} WHERE awardtype='award'";
$result = db_query($rows);
foreach ($result as $row) {
$checkboxes[$row->award_id] = '';
$form[$row->award_id]['DESCRIPTION_display'] = array('#markup' => $row->description);
$form['DESCRIPTION_' . $row->award_id] = array("#type" => "value", "#markup" => $row->description);
$form[$row->award_id]['award_imag_display'] = array("#markup" => $row->award_imag);
$form['award_imag_' . $row->award_id] = array("#type" => "value", "#markup" => $row->award_imag);
$form[$row->award_id]['reason_display'] = array('#type' => 'textfield','#required' => True, '#value' => $row->reason);
$form['reason_' . $row->award_id] = array("#type" => "value", '#required' => True, '#value' => $row->reason);
};
$form['date'] = array(
'#title' => t('Date of award'),
'#type' => 'date',
'#description' => t('Enter the Date of award'),
'#required' => TRUE,
'#default_value' => array(
'year' => format_date(REQUEST_TIME, 'custom', 'Y'),
'month' => format_date(REQUEST_TIME, 'custom', 'n'),
'day' => format_date(REQUEST_TIME, 'custom', 'j')
)
);