|
|
| laziness, impatience, and hubris | |
| PerlMonks |
JavaScript and form submissionby rashley (Scribe) |
| on Nov 21, 2006 at 09:36 UTC ( [id://585267]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.rashley has asked for the wisdom of the Perl Monks concerning the following question:
I have a JavaScript function that disables the submit button on a form to prevent duplicate submissions. It works fine.
The problem I'm running into is that when it submits the form, I'm losing my param that's on the submit button. Here's where I declare my form.
And here are my buttons.
Looking at my logs, it's clear that when I use the -onsubmit=>"return disableForm(this);" I don't get the 'commit_part' that I need when I do elsif ($cgi->param('commit_part')) later on. How can I call the script and get the param? Thanks.
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||