Help!

timer submit submits more than once

 
  

Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming RSS
Next:  Swap Images  
Author Message
asdf
External


Since: May 29, 2006
Posts: 19



PostPosted: Tue Aug 07, 2007 10:48 pm    Post subject: timer submit submits more than once
Archived from groups: microsoft>public>frontpage>programming (more info?)

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?
Back to top
Stefan B Rusynko
External


Since: Oct 11, 2003
Posts: 11555



PostPosted: Wed Aug 08, 2007 4:04 am    Post subject: Re: timer submit submits more than once [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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!" (-;
_____________________________________________


"asdf" <asdf DeleteThis @discussions.microsoft.com> wrote in message news:C9DE35FC-ED5A-4673-B80F-2C588A47D5EE@microsoft.com...
| 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?
|
Back to top
asdf
External


Since: May 29, 2006
Posts: 19



PostPosted: Wed Aug 08, 2007 4:00 pm    Post subject: Re: timer submit submits more than once [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.

"Stefan B Rusynko" wrote:

> 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!" (-;
> _____________________________________________
>
>
> "asdf" <asdf.RemoveThis@discussions.microsoft.com> wrote in message news:C9DE35FC-ED5A-4673-B80F-2C588A47D5EE@microsoft.com...
> | 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?
> |
>
>
>
Back to top
Display posts from previous:   
Post new topic   General Reply to Topic (not reply to a specific post)    Forums Home -> Programming All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum