Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I have an html form similar to the following
<input type="checkbox" name="item" value="1">1
<input type="checkbox" name="item" value="10">10
<input type="checkbox" name="item" value="100">100
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)