Not 100% perl but it took me *ages* to work it out and I couldn't find any examples any-where so I wanted to make a record for the next poor schmuck. If you press the button created it will pop up a window prompting you with OK or cancel. Hitting OK will submit the form, hitting cancel will not. The CGI.pm doco for submit says you cannot stop the form from being submitted with an onClick action but I tried it with Mozilla 1.0 and IE 5 and the form wasn't submitted in either case...
Again thats only a matter of personal taste but my personal opinion is that if you are going to override the submit functionality then you should really not use a submit button.
YMMV but I've found that approach to be the least error prone, especically as not everyone has IE5 as a base minimum (Linux and Macs anyone?). Of course, you absolutely must have the button in a Form otherwise you can forget it in Netscape.
What do you mean by an "ordinary button"? I still need to submit the form if the user hits OK on the java confirm popup, how else would I do that?
-- Until you've lost your reputation, you never realize what a burden it was or what freedom really is. -Margaret Mitchell