Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by Buckaroo Buddha (Scribe)
on Jun 11, 2001 at 19:21 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-20 00:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found