|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Ive got a javascript form validation script attached to a form's "onSubmit" handler, the users entered information is then sent to a cgi script. The cgi script is the formmail perl script from matts script archive.
The problem happens when i check the page using netscape browsers with the "security alert box" option active (the one that talks about information being viewable when submitted). The first alert box appears when i click the submit button, i click "ok", then a second one appears when the my "thanks" page loads. When i click ok in this second alert, the "thanks" page reloads. Then two identical emails end up being generated instead of one. Has anyone had similar trouble? |
|
#2
|
|||
|
|||
|
Please post your code so it can be reviewed.
__________________
Michael
|
|
#3
|
|||
|
|||
|
I recommend not using an onSubmit handler and trying something like this:
<A HREF="javascript:validateForm()"><IMG SRC="a_submit_image"></A> and then in the validateForm() use if(!errors) { self.document.forms[0].submit(); } else { alert("Please fill in the following fields :" + errors); } That's without seeing the code. I would avoid using the onSubmit myself. What version of Netscape is it? |
|
#4
|
|||
|
|||
|
sorry, i forgot i'd posted here and i lost the code....
but the problem was with Netscape Navigator 4.7 and Netscape 6 thanks |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > netscape: unwanted double form submit |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|