in reply to multiple inputs on form with same name

Hi,
when you code
$FORM{$field} = $query->param($field);
you are asigning $query->param($field) to an scalar, but it is an array, so you are obtaining the last element of the array.

In CGI documentation you can find
@foo = split("\0",$params->{'foo'});

but I would code this:
@array = $query->param($field);

and you will have an array with the parameters.

Hope this helps
Hopes