in reply to Re: PERL and ASP: using the $Request Object ?
in thread PERL and ASP: using the $Request Object ?
this code is used in a situation where one has submited data from one form/webpage to the next. Having all of this information in a hash will allow you to carry all that data into the next form without worrying about what the specific KEYES of each of the form elements.split ('&',$Request->form->Item); foreach my $pair (@_) { my @temp = split ('=',$pair); $form_elements{$temp[0]} = $temp[1]; } foreach my $key (keys %form_elements) { $Response->write("$key = $form_elements{$key} <br>"); }
There may be other ways to do this (feel free to chip in) ... but i think this is a pretty good way of doing it :)
|
---|