Hello,

I am having troubles getting started.  I have a Unix (Solaris 9) cgi
script which parses a form, processes the contents of the form, and then
sends it to a Windows ASP script for more processing and insertion into
a Access database.  I haven't been able to determine the correct or most
efficient way of sending all the form contents to the ASP script.  In
the code below, hidden_1 and hidden_2 are only for testing.  The actual
fields will number over 40 and have labels such as first_name,
last_name, email_address, etc.  The code below does work with the two
test variables.  I have omitted warnings and strict etc for clarity.

Any help will be appreciated.

Lawrence Adamiec
Unix Manager
Rm. 525B 
565 W. Adams St.
Chicago-Kent College of Law
Illinois Institute of Technology
Chicago, Illinois
312-906-5301

***** Start of Code *************

&ReadParse;

my $ua = LWP::UserAgent->new;

my $req = POST 'http://some_server/test2.asp',
          [ hidden_1 => 'XXaaXX',
            hidden_2 => $in{'hidden_2'}
          ];
my $content = $ua->request($req)->as_string;

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to