develooper Front page | perl.libwww | Postings from January 2001

How do I fill this structure with the variables passed from a web page...

From:
Robert
Date:
January 17, 2001 20:52
Subject:
How do I fill this structure with the variables passed from a web page...
Message ID:
008a01c08109$3c8fce00$1a6001cb@chalmers.com.au
If I have this structure, and the items are hardcoded like this, how do I
make it so that variables that are passed to it from a web page form are put
there instead?

............................
#create request
my $req = (POST 'item_1',
        [ secParams   => 'item_2',
          referenceID => 'item_3',
        ]);
....................................

Is it possible looks like this
............................................
ReadParse();

#create request
my $req = (POST '$in{item_1}',
        [ secParams   => '$in{item_2}',
          referenceID => '$in{item_3}',
        ]);
.........................................

I'm having trouble trying to find the right syntax....

Thanks for any help,
Robert





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About