in reply to A problem use CGI.pm

... so I change onSubmit=>"return validateForm",but it cannot get form params.Why?
Well, at least one things wrong with your system, for sure, and it's this: Javascript functions require that you use parens to call them. Otherwise you'd just return a reference to the function. As if you were to return \&foo instead of foo() in Perl.

Replies are listed 'Best First'.
Re: Re: A problem use CGI.pm
by lgjut (Initiate) on Oct 26, 2003 at 03:20 UTC
    Sorry ,it is a input error .But I did use
    -onSubmit=>"return validateForm()"
    in my test code.