Loading ...
Sorry, an error occurred while loading the content.

Re: Trying to get list/hash of form values with Params

Expand Messages
  • Joshua Chamas
    ... First, you need to set RequestParams ... http://www.apache-asp.org/config.html#RequestParam25a784ba Then you can try: my $params = $Request- Params; for my
    Message 1 of 2 , Feb 6, 2005
    • 0 Attachment
      Quoting mark_mcwiggins <mark@...>:

      >
      > I can't get $Request->Params to give me the list of
      > parameters in a form I can loop through. Can someone
      > provide an example?
      >
      > I've tried variations on
      >
      > %params = $Request->Params();
      >
      > foreach $key (keys %params)
      > {
      > // etc.
      > }
      >

      First, you need to set RequestParams ...
      http://www.apache-asp.org/config.html#RequestParam25a784ba

      Then you can try:

      my $params = $Request->Params;
      for my $key (keys %$params) {
      my $value = $params->{$key};
      ...
      }

      Regards,

      Josh

      ---------------------------------------------------------------------
      To unsubscribe, e-mail: asp-unsubscribe@...
      For additional commands, e-mail: asp-help@...
    Your message has been successfully submitted and would be delivered to recipients shortly.