Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

simple CGI and ASP

0 views
Skip to first unread message

isecc

unread,
Oct 3, 2008, 1:03:40 PM10/3/08
to
Hi all,

The scenario is unix box+apache+asp+perl.

I've the following code:
---------------------------------------------
<%
use strict;
use warnings;
use CGI;

my $web = new CGI;
my @all = $web->param;

print "RM: ".$ENV{'REQUEST_METHOD'}."\n";

my $v;

if ($web->param)
{
$v = $web->param( 'variabile' );
print "I was given a value: $v\n";
}
else
{
print "Got no value\n<br>";
}

%>


<form method="post" action="/table_example/form.html">
<input type="hidden" name="variabile" value="value">
<input type="submit" value="Continue">
</form>
---------------------------------------------

if I use the POST method in the form I'm not able to read the value
passed by the form.
Instead if I use the GET I'm able to get the information.

Any ideas?

TIA.

Bob Walton

unread,
Oct 5, 2008, 6:54:19 PM10/5/08
to
isecc wrote:
...

> The scenario is unix box+apache+asp+perl.
>
> I've the following code:
...

> if I use the POST method in the form I'm not able to read the value
> passed by the form.
> Instead if I use the GET I'm able to get the information.
>
> Any ideas?

I'm unable to duplicate your problem using Apache 2.2, Perl 5.8.8
(ActiveState build 822) with normal CGI, Firefox 3.0.2, all on Windows
XP SP3 (with, of course, "print $web->header;" added). Works fine with
either GET or POST. Might be something with ASP? I doubt it has
anything to do with Perl.

> TIA.

HTH.

0 new messages