On 21 Jun 2001, at 9:50, Curtis Poe wrote:
> > foreach ($q->param) {
> > $REQUEST{"$_"}=$q->param("$_");
> > }
>
> I assume that you know your form better than I do, but are you aware that
> the above snippet will only return the first value for a param if that
> param has several values? For many forms, this will not make a difference.
I am working on a script which has just this problem. My solution was
to look for the name of the field, get an array and assign the array as
the value in the hash. Besides knowing which fields may contain
multiple values, is there a way to determine the number of values
returned by $q->param(foo)?
Thanks,
William