Perl Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPerl Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 22nd, 2001, 11:11 AM
bitterclarence bitterclarence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Amsterdam
Posts: 7 bitterclarence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Angry

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?

Reply With Quote
  #2  
Old April 4th, 2001, 03:10 PM
pieux pieux is offline
Seņor Member
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Aug 2000
Posts: 1,156 pieux User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 17 m 59 sec
Reputation Power: 10
Please post your code so it can be reviewed.
__________________
Michael

Reply With Quote
  #3  
Old April 10th, 2001, 03:56 AM
meikle meikle is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Location: Edinburgh, Sctoland
Posts: 0 meikle User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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?

Reply With Quote
  #4  
Old May 31st, 2001, 10:41 AM
bitterclarence bitterclarence is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2001
Location: Amsterdam
Posts: 7 bitterclarence User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPerl Programming > netscape: unwanted double form submit


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT