Getting Double POST actions 
Author Message
 Getting Double POST actions

I have an ASP page (lets call it test.asp) with 2 separate forms on it.
Form1 has a selection box control whose onchange method refers to a VBScript
subroutine whose only line is form1.submit(). The form1 method is POST and
the action is set to test.asp (calls itself). Form 2 has a button whose
onchange method calls a vbscript subroutine that does some entry validation.
If the data is all OK, then the subroutine executes a form2.submit()
command. Form2 method is POST and the action is set to test.asp (calls
itself).

When either the Form1 selection box changes, or the form2 button is clicked,
the action of the page is as if the action had been taken twice. For
example, when the form2 button is clicked it calls itself twice. The form
action is to add data to the database so this causes the same data to be
added twice.

Any suggestions as to what might be causing and solutions to this will be
appreciated.

thanks



Sat, 25 Oct 2003 04:21:25 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Use Word checkbox control's double click action to update field in access database record

2. preventing a double click action from generating two events

3. Posting action

4. Help with OutputTo SendTo Action/Method - Multi-post

5. Post Net Bar code printing on Epson action 5000 printer

6. INet control & POST form action

7. Sorry for the double posts

8. Update: [Isolated] Custom Action code not getting processed!

9. Getting the Double-Click setting?

10. Form post gets stomped!

11. getting started with post script

12. Getting the response from a form post in an asp

 

 
Powered by phpBB® Forum Software