Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
<html> <head> <title>Test</title> </head> <body> <form action="cgitest.pl" method="POST" enctype="application/x-www-for +m-urlencoded"> <input type="text" id="txtInput"> <br> <input type="submit" id="submit" value="submit"> </form> </body> </html>
#!/usr/bin/perl use strict; use warnings; use CGI qw(:standard); my $cgi = CGI->new; my $txtInput = $cgi->param('txtInput'); warn $txtInput; print $cgi->header(); print $cgi->start_html('Testing'); print $cgi->h1($txtInput); print $cgi->end_html;
[error] [client XX.XX.XX.XX] Use of uninitialized value in warn at cgi +test.pl line 9., referer: http://server/form.html [error] [client XX.XX.XX.XX] Warning: something's wrong at cgitest.pl +line 9., referer: http://server/form.html
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Get HTML for values using CGI module
by Corion (Patriarch) on Feb 21, 2010 at 18:54 UTC |