Are you using CGI.pm? If so you have to make a couple of changes to the module to get
POST to work with query args.
Mark'
-----Original Message-----
From: "Russ Fineman"<[EMAIL PROTECTED]>
To: "Perl Win32 Web"<[EMAIL PROTECTED]>
Date: Wed Jun 27 10:05:37 PDT 2001
Subject: Problem with Form "Post"
>I'm not sure if this is the correct group, if not could you let me know which one is.
>
>
>
>I have a problem getting the "Post" function to work in a Form. Below is my form and
>a test screen to retrieve the environmental variables. My actual problem is trying to
>post form information to a text file. When I use "POST" the QUERY_STRING = comes
>back blank. If I change to a "GET" function it works fine. I have tryed this using
>PWS with the form and program in the cgi-bin folder. I have also run this on my UNIX
>Host for my Lions Club Web Page. with the same results.
>
>
>
>Can anyone tell me what I'm missing??
>
>
>
>Below is the form and the Perl script:
>
>
>
>FORM
>
><html>
>
><head><title>test of cgi</title></head
>
><body>
>
><form action="http://www.gigharborlions.org/cgi-bin/env.cgi" method="GET">
>
>Enter some text:
>
><input type="text" name="sample_text" size=30>
>
><input type="submit"><p>
>
></form>
>
></body>
>
></html>
>
>
>
>Script (Note: when on UNIX the first line is #!/usr/bin/perl)
>
>#!c:\perl\bin\perl
>
>print "Content-Type: text/html\n\n";
>
>
>
>print <<EndOfHTML;
>
><HTML><HEAD><TITLE>Print Environment</TITLE><?HEAD>
>
><body>
>
>EndOfHTML
>
>
>
>foreach $key (sort(keys %ENV)) {
>
>print "$key = $ENV{$key}<br>\n";
>
>}
>
>print "</body></HTML>";
>
>
>
/~_. _ | _ _ _ _
\_/|(_||| | |(_)| |
_|
___________________________________________________
GO.com Mail
Get Your Free, Private E-mail at http://mail.go.com
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web