I was generating a simple form with below fields, but i am wandering why my field values are not storing in the $formstate['values'], but its in the $formstate['input'].. please have look into below code and correct me if i am doing something wrong.
function create_entry_form($form, &$form_state){
$form['entry']['password'] = array(
'#type' => 'password',
'#required' => TRUE,
'#default_value' => '',
'#maxlength' => 15,
);
$form['entry']['submit'] = array(
'#type' => 'submit',
'#value' => t('OK'),
'#weight' => 100,
);
$form['entry']['emailid'] = array(
'#type' => 'textfield',
'#required' => TRUE,
'#default_value' => '',
'#maxlength' => 25,
);
$form['entry']['reqbtn'] = array(
'#type' => 'button',
'#value' => t('Request'),
'#weight' => 106,
'#executes_submit_callback' => TRUE,
'#submit' => array('request_site_password'),
'#limit_validation_errors' => array(),
);
return $form;
}
function request_site_password($form, &$form_state) {
echo '<pre>';print_r($form_state);exit;
}