avik has asked for the wisdom of the Perl Monks concerning the following question:
use warnings; use strict; use CGI qw(-no_xhtml :standard *table *Tr ); print header, start_html, start_form, start_table; print "CGI.pm Version: $CGI::VERSION"; print hr; print h5("HTML Input tag based counter increments"); print input({type => 'text', name => 'val', value => param('val') + 10 }); print hr; print h5("CGI.pm textfield based counter fails to increment"); print textfield({type => 'text', name => 'val2', value => param('val2') + 10 }); print submit(); print end_table, end_form, end_html;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI.pm input vs textfield
by blokhead (Monsignor) on Jun 23, 2004 at 19:08 UTC | |
by ishnid (Monk) on Jun 24, 2004 at 13:18 UTC | |
by avik (Novice) on Jun 24, 2004 at 19:17 UTC | |
|
Re: CGI.pm input vs textfield
by bassplayer (Monsignor) on Jun 23, 2004 at 17:22 UTC |