[support] How to find the value of checkbox in a form
Ms. Nancy Wichmann
nan_wich at bellsouth.net
Mon Feb 6 17:13:53 UTC 2012
Indeed, $form_state['values'][data1_checkbox] would be where to find the value (0 or 1). Your submit function should be formed like:
function test_myform_submit($form, &$form_state)
Nancy
Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.
>________________________________
> From: "Kim, Soonho (IFPRI)"
>I have a problem to find a checkbox value in a form.
>I guess that I might get the value from " $form_state['values'][data1_checkbox] " but I don't know how to get the $form_state from $form..
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20120206/22580445/attachment.html
More information about the support
mailing list