Hello,
What is exact difference between $form_state['values'] and $form_state['input']? I use form with theme to build table from select controls and check boxes. I don't get modified values in $form_state['values'] in *_submit function, but I can get them from $form_state['input'].
1. Can I use $form_state['input'] ?
2. What I'm doing wrong that $form_state['values'] is not filled with changed control values?
Here is my form and theme functions:
<?php
function tblfr_table($form, &$form_state) {
$objs = db_query("SELECT * FROM test_tables");
$cl = array('a' => 'A','b' => 'BB','c' => 'CCC','d' => 'DDDD','e' => 'EEEEE','f' => 'FFFFFF',);
$form['#tree'] = true;
foreach ($objs as $obj) {
$form['objs'][$obj->id] = array();
$form['objs'][$obj->id]['name'] = array('#markup' => check_plain($obj->name), );
$form['objs'][$obj->id]['combo'] = array('#value' => check_plain($obj->combo), '#type' => 'select', '#options' => $cl, );
$form['objs'][$obj->id]['bool'] = array('#value' => check_plain($obj->bool), '#type' => 'checkbox', );
}
$form['checkbox'] = array('#value' => TRUE, '#type' => 'checkbox', );
$form['submit'] = array('#type' => 'submit', '#value'=>t('Submit'), );
$form['cancel'] = array('#type' => 'markup', '#markup'=>l(t('Cancel'), 'ticker/TKM1T'), );
return $form;
}
function theme_tblfr_table($variables) {