in reply to Re: Problem with my .pl script. Helpppp!
in thread Problem with my .pl script. Helpppp!

Maybe there's rather a problem with the HTML form
where you actually mix GET and POST methods:
<form action="!CGI_URL!/test.pl?login=yes"
Adding parameters to a URL after the question mark is the GET method, but
method="post">
is obviously the POST method.

To be more concise, move the login parameter inside the form, thus removing any GET stuff. Like this:
<form action="!CGI_URL!/test.pl" method="post"> [...] <input type=text name="user"> <input type=hidden name="login" value="yes">

Replies are listed 'Best First'.
Re: Re: Re: Problem with my .pl script. Helpppp!
by antirice (Priest) on Aug 31, 2003 at 14:23 UTC

    franktalisman++ good point. However, you *can* post to !CGI_URL!/test.pl?login=yes and still grab its value from $ENV{QUERY_STRING} *OR* you can uncomment line 458 of CGI.pm* which allows you to append query string data to the end of post data. However, by default what you said is mostly true if you are only concerned with CGI's param method.

    Hope this helps.

    * YMMV. It should be in the init sub. Just look for a comment that reads "APPEND to the POST data".

    antirice    
    The first rule of Perl club is - use Perl
    The
    ith rule of Perl club is - follow rule i - 1 for i > 1

Re: Re: Re: Problem with my .pl script. Helpppp!
by webstudioro (Acolyte) on Aug 31, 2003 at 14:22 UTC
    I try you example but don't work. The problem is with test.pl . The script don't read the html file.