timer submit submits more than once

A

asdf

Hello

I am using frontpage 2002 and asp.
I have a form that submits after the user clicks submit and if the user
forgets to click submit, the page submits after a couple of minutes (data
goes into access db).
It works fine most of the time, but when it submits with the timer,
sometimes it goes in the db many times. When the user clicks submit, it goes
in once. When the user doesn't click submit, sometimes the data goes in once
and sometimes several times. Whats up with that?
Can someone help me?
 
S

Stefan B Rusynko

What do you expect will happen if your code is submitting w/o a user click on a timer
- just opening the page will submit the form as many times as the timer fire off during that session

IMHO your approach (w/ a timer) is amateurish

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Hello
|
| I am using frontpage 2002 and asp.
| I have a form that submits after the user clicks submit and if the user
| forgets to click submit, the page submits after a couple of minutes (data
| goes into access db).
| It works fine most of the time, but when it submits with the timer,
| sometimes it goes in the db many times. When the user clicks submit, it goes
| in once. When the user doesn't click submit, sometimes the data goes in once
| and sometimes several times. Whats up with that?
| Can someone help me?
|
 
A

asdf

Thank you for your help.
Can you explain to me why it would submit many times?
The timer starts only when some starts typing in the textbox. If the two
minutes is over and the user doesn't push submit, the page goes to the "your
info has been submitted page". When that page is loaded, the asp code to
insert into db executes. Then the user can press a button to go back to the
page or it will automatically go back in ten seconds. Then the page comes
back up fresh with no data in it....the timer doesn't start again until the
next user starts typing their information in.
Sorry. I still don't understand what the problem is.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top