esharris has asked for the wisdom of the Perl Monks concerning the following question:
When I run this with the input c1=1, the check box is NOT checked.#!/usr/local/bin/perl -w use strict; use CGI qw/:standard/; { print header, start_html(-title => 'Test CGI'), p, checkbox('c1', 1, 'ON', 'c2'), end_html; }
IMHO, this side effect is very bizarre.<aiserv1:esharris> !! cgi.pl (offline mode: enter name=value pairs on standard input) c1=1 Content-Type: text/html <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> <HTML><HEAD><TITLE>Test CGI</TITLE> </HEAD><BODY><P><INPUT TYPE="checkbox" NAME="c1" VALUE="ON">c2 </BODY></HTML><aiserv1:esharris>
Earl
janitored by ybiC: Balanced <code> tags around code and input samples
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm quirk
by Aristotle (Chancellor) on Dec 11, 2003 at 21:20 UTC | |
by esharris (Monk) on Dec 11, 2003 at 22:38 UTC | |
|
Re: CGI.pm quirk
by jdtoronto (Prior) on Dec 11, 2003 at 21:35 UTC | |
by esharris (Monk) on Dec 11, 2003 at 22:33 UTC | |
by davido (Cardinal) on Dec 11, 2003 at 22:43 UTC |