in reply to Processing Textarea data

  foreach my $value (param($field))

This loop won't iterate on the lines of the cgi parameter. param($field) will return only one value, so the loop body is ran only once.

Replies are listed 'Best First'.
Re: Re: Processing Textarea data
by tinita (Parson) on May 17, 2004 at 15:44 UTC
    of course param($field) returns all values belonging to $field, so the loop will iterate over them. i think you're forgetting multivalued parameters...
      Yes - in the case of multivalued parameters param will return an array, but in this example the OP is spcifically reffering to a textarea field which results in a scalar.

      --tidiness is the memory loss of environmental mnemonics