hi,
when i try to retrieve my checkbox elements in PHP from HTTP_POST_VARS after summiting a form i am only getting the checkbox elements which have been checked and not the ones which have not been checked, is this the nornal behaviour HTTP_POST_VARS works ???
and if so is there any way to get all the checked as well as unchecked checkbox elements from HTTP_POST_VARS.

bye,
gaurav.

    The browser only sends back results for the checked checkboxes, not the unchecked ones. To see what I mean, switch the form method to GET, and see how the checkboxes appear in the URL.

    If you want to know which boxes were unchecked, you'll have to keep a list of all the checkboxes in the form, and see which ones aren't mentioned in $HTTP_POST_VARS.

      Write a Reply...