Forums / Developer / Using ezhttp with radio buttons and checkboxes

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Using ezhttp with radio buttons and checkboxes

Author Message

Nathan Kelly

Sunday 04 March 2007 3:19:50 pm

Hi all,

I'm currently doing my head in trying to figure out how to use ezhttp with an array of radio buttons or checkboxes.

My user registration form has a number of custom optional fields that consist mostly of single choice and multiple choice questions using radios and checkboxes for the answers. If a user fill out the form but fails to fill in a required attribute the form is returned but all of the answers are empty, meaning 9 out of 10 users won't bother filling out the survey again.

I'm using ezhttp on a number of text inputs and it works as expected, it seems like the POST variable is not being set for my radios and checkboxes though as I don't seem to get any value returned if they are selected?

Can ezhttp be used on radio and checkbox elements or is this just not possible?

<label><input type="radio" name="ContentObjectAttribute_ezenhancedselect_selected_array_13464[]" value="Male" /> Male</label>									
<label><input type="radio" name="ContentObjectAttribute_ezenhancedselect_selected_array_13464[]" value="Female" /> Female</label>
<input type="hidden" name="ContentObjectAttribute_id[]" value="13464" />

I would expect ContentObjectAttribute_ezenhancedselect_selected_array_13464[] to return the value either Male or Female depending on what was checked but I don't seem to get a value at all.

Can anyone give me some pointers to using ezhttp please?

Cheers.

Pardon me while I burst into flames...