|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Re: Why is my CGI.pm script trying to assign data before pressing submit.by CharlesClarkson (Curate) |
| on Dec 07, 2001 at 20:30 UTC ( #130225=note: print w/ replies, xml ) | Need Help?? |
|
With CGI.pm you would need these:
Place the script in $p->start_html using -script. print $p->start_html( -script => $js_func );Then, when you start the form, use: print $p->start_form(-onsubmit => 'checkform(this)');HTH, Charles
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||