Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re: Re: PERL and ASP: using the $Request Object ?

by Buckaroo Buddha (Scribe)
on Jun 11, 2001 at 19:21 UTC ( #87528=note: print w/replies, xml ) Need Help??

in reply to Re: PERL and ASP: using the $Request Object ?
in thread PERL and ASP: using the $Request Object ?

Thanks Jouke!
I would have spent all day trying to find that out :)
I now understand the object a lot better and have found out that the list of variables stored in the request object is not a hash table at all ... but a STRING!! (this, i'm sure many of you know ... but i'm even more sure that there are many who don't know and may stumble across this one day)

the final code that i wound up using is
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>"); }
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.

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 :)

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87528]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2019-08-25 00:10 GMT
Find Nodes?
    Voting Booth?

    No recent polls found