I want to loop over the elements of an HTML form, and store the values of the fields in an object. The following code doesn\'t work, though:
functi