I have an html form similar to the following

<form>
<input type="checkbox" name="item[]" value="1">1
<input type="checkbox" name="item[]" value="10">10
<input type="checkbox" name="item[]" value="100">100
</form>

I'm seeing the following behavior when the form is submitted:
 - if one item is checked,
      len(self.request().value('items[]') is equal to the length of the
      string in 'value'; i.e. it is not being carried over as an array/list.
      I would expect the number 1 to be the output from the statement above

 - if more than one item is checked,
      len(self.request().value('items[]') is (correctly) equal to
      the number of elements in the list.

It makes no difference whether the form submit method is GET or POST.

What is the correct way to deal with INPUT arrays so that their consistency
is maintained regardless of whether one or more than one item is submitted.

I'm using mod_webkit with the SetHandler directive on Apache 1.3.23 (and
Mozilla 1.0 on the client side)

brett





-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to