Of course not. And it took me a awhile to figure out why the hell not. Thank goodness
for Thomas Gutenburg! Is that spelled right?
Mark'
-----Original Message-----
From: "Ben Wheeler"<[EMAIL PROTECTED]>
To: "Perl Win32 Web"<[EMAIL PROTECTED]>
Date: Wed Jun 27 14:36:26 PDT 2001
Subject: Re: Problem with Form "Post"
>Sure, if you define the QUERY_STRING in your post, but it won't naturally
>be there in a post.
>
>Ben
>
>At 11:52 AM 6/27/01 -0700, Mark Bergeron wrote:
>>I beg to differ. I pass query args. to POST all of the time and it's the
>right way to do it! For me.
>>
>>Mark'
>>
>>-----Original Message-----
>>From: "Ben Wheeler"<[EMAIL PROTECTED]>
>>To: "Perl Win32 Web"<[EMAIL PROTECTED]>
>>Date: Wed Jun 27 11:27:12 PDT 2001
>>Subject: Re: Problem with Form "Post"
>>
>>>The QUERY_STRING environment variable is defined to be the string of
>>>characters contained after the ? in the url. If you are doing a post,
>>>there is no ? in the url so of course it will be blank. Not all
>>>environment variables are always applicable to each situation.
>>>
>>>Ben
>>>
>>>At 11:17 AM 6/27/01 -0700, Mark Bergeron wrote:
>>>>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
>>>>
>>>>
>>>_______________________________________________
>>>Perl-Win32-Web mailing list
>>>[EMAIL PROTECTED]
>>>http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web
>>
>>/~_. _ | _ _ _ _
>>\_/|(_||| | |(_)| |
>> _|
>>___________________________________________________
>>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
/~_. _ | _ _ _ _
\_/|(_||| | |(_)| |
_|
___________________________________________________
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