Forum OpenACS Q&A: Response to Multiple User Inputs

Collapse
Posted by Jeff Davis on
Jun, there is not a right or wrong way to do it, you use multiple
for some things and array for others.  If it is a form to edit a field
for a bunch of different object_ids you would use array and have
the key be the object id.  One issue with multiple is
if order is important you probably should not use it.
I don't think the get/post has to present url vars in the same order as the form.

For example for 3 lines of address input each in a seperate
input field, if they were not identified it is possible you could get them back in a different order.

Maybe the spec says the client must
return variables in the order they are encountered in the form
but I don't remember ever seeing anything like that and I would
hate to have to count on it.