punkish has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; use CGI::Pretty qw(:standard); use CGI::Carp qw(fatalsToBrowser); my %webobj = ( 'template' => param('template'), 'minscale' => param('minscale') ); print header, start_html; print<<WEBOBJ; <form method='get' action='webobj.cgi'> <b>Web Object</b> <table border='0'> <tr> <td align='right'>Template</td> <td><input type='text' name='template' value="$webobj{'templat +e'}"></td> </tr> <tr> <td align='right'>Minscale</td> <td><input type='text' name='minscale' value="$webobj{'minscal +e'}"></td> </tr> <tr><td></td><td colspan='2'><input type='Submit' value='submit'> +<input type='reset'></td></tr> </table> </form> <pre> # ## start web object WEB TEMPLATE "$webobj{'template'}" MINSCALE $webobj{'minscale'} END # end web object # </pre> WEBOBJ print end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Puzzling CGI behavior
by merlyn (Sage) on Jan 30, 2003 at 03:14 UTC | |
by Cody Pendant (Prior) on Jan 30, 2003 at 03:50 UTC | |
by Gilimanjaro (Hermit) on Jan 30, 2003 at 09:51 UTC | |
by punkish (Priest) on Jan 30, 2003 at 03:39 UTC | |
|
Re: Puzzling CGI behavior
by BrowserUk (Patriarch) on Jan 30, 2003 at 03:06 UTC | |
by punkish (Priest) on Jan 30, 2003 at 03:13 UTC | |
by chromatic (Archbishop) on Jan 30, 2003 at 03:27 UTC | |
|
Re: Puzzling CGI behavior
by Coruscate (Sexton) on Jan 30, 2003 at 07:41 UTC | |
|
(jeffa) Re: Puzzling CGI behavior
by jeffa (Bishop) on Jan 30, 2003 at 14:29 UTC |