I have written a Perl CGI script that produces a form and then emails me when the form is filled out with the information.
It works great except for one thing. on the initial load of the page it sends me a blank email?! I am trying to use the onClick => function() value in the submit button which works great after the initial page load. But for some reason the first pass generates what the script thinks is a click on the submit button.
I was just wondering if anyone had any experience with onClick and had a workaround for this problem? I know I could do some param() checking and probably stop this but would like to avoid that if I could. Any comments would be appreciated
It works great except for one thing. on the initial load of the page it sends me a blank email?! I am trying to use the onClick => function() value in the submit button which works great after the initial page load. But for some reason the first pass generates what the script thinks is a click on the submit button.
I was just wondering if anyone had any experience with onClick and had a workaround for this problem? I know I could do some param() checking and probably stop this but would like to avoid that if I could. Any comments would be appreciated