Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Strange CGI problem with POST

by snowcrash (Friar)
on Mar 19, 2001 at 14:00 UTC ( #65396=note: print w/replies, xml ) Need Help??


in reply to Strange CGI problem with POST

i never used the CGI::ReadParse() method, so i gave it a try. testing with the following minimal script it works fine - i.e. $in{antique} is set to the correct value using POST.

maybe your problem is hidden somewhere else in your code, be sure to enable warnings and use strict;

consider using cgi's new method's, when writing new code.
#!/usr/bin/perl -w use strict; $|=1; use CGI; my $q = new CGI; use vars qw(%in); CGI::ReadParse(); print $q->header(), $q->start_html(), "The value of the antique is $in{antique}.\n", $q->start_form(), $q->textfield(-name=>'antique'), $q->end_form(), $q->end_html();


cheers
snowcrash //////

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://65396]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2021-10-16 04:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (69 votes). Check out past polls.

    Notices?