dda has asked for the wisdom of the Perl Monks concerning the following question:
It is not a perl question exactly, but I think it is related anyway. Could you please explain why the first input (button1) does not generate parameter value? Here is the code:
When I click on "button1", I can't see anything except the form itself, and "button2" works as expected. What am I missing?#!/usr/bin/perl -w use strict; use CGI qw /:standard/; my $q = new CGI; print header, start_html; print ("Submitted:", $q->param(), hr) if $q->param(); print <<EOF; <form method="post"> <input type="button" name="button1" value="button1" onclick="this.for +m.submit()" /> <input type="submit" name="button2" value="button2" /> </form> EOF print $q->end_html; exit;
--dda
|
|---|