I have written the following code
$form['checking'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('checking',0),
'#title' => t('title'),
'#required' => TRUE
);
return system_settings_form($form);
the checkbox preserve its checked and unchecked state in the form but I can't get value of the checkbox.
I'm printing its value
dsm(variable_get('checking);
print_r(variable_get('checking',0));
Whether a checkbox is checked or unchecked, in both cases it returns me 1
How can I know whether the checkbox is checked or not?