Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: ASP

Trying to get list/hash of form values with Params

 

 

ModPerl asp RSS feed   Index | Next | Previous | View Threaded


mark at icanfixyouremail

Feb 6, 2005, 7:48 AM

Post #1 of 2 (1286 views)
Permalink
Trying to get list/hash of form values with Params

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.
}

to no avail.

Thanks in advance for any suggestions.

Mark McWiggins
425-369-8286





---------------------------------------------------------------------
To unsubscribe, e-mail: asp-unsubscribe [at] perl
For additional commands, e-mail: asp-help [at] perl


josh at chamas

Feb 6, 2005, 1:11 PM

Post #2 of 2 (1194 views)
Permalink
Re: Trying to get list/hash of form values with Params [In reply to]

Quoting mark_mcwiggins <mark [at] icanfixyouremail>:

>
> 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 [at] perl
For additional commands, e-mail: asp-help [at] perl

ModPerl asp RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.