SitePoint Sponsor |
|
User Tag List
Results 1 to 6 of 6
Thread: Form Post
-
Feb 21, 2001, 22:35 #1
Thanks for reading my post. I would like to know anyone can help me with this. I want to click one button/link to submit many forms at once. Someone told me that it can be done by using Javascript.
Does anyone know how to do this? The purpose I wanted to do that is to automate submission of over 30 forms /day to my site for analysing purpose. Thanks!
-
Feb 23, 2001, 17:36 #2
- Join Date
- Sep 2000
- Location
- United States
- Posts
- 1,921
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
edited to correct the line calling "SubmitForms()"
with vbscript, it can be done using the 'form.submit' command. You can write it directly, into your page, i think, like below:
Code:<SCRIPT LANGUAGE="VBSCRIPT"> Private Sub SubmitForms() form1.submit form2.submit form3.submit End Sub </SCRIPT>
Code:<INPUT TYPE="BUTTON" onClick="VBScript:SubmitForms()">
Good luck with your scripts!
-
Feb 23, 2001, 17:46 #3
-
Feb 23, 2001, 19:30 #4
- Join Date
- Apr 2000
- Location
- Melbourne, Australia
- Posts
- 2,571
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Moved.
The problem I see with a VBScript/JavaScript solution is that as soon as you submit the first form in a page, the browser stops running your script to load the result page from the form! If each of your forms are in a different frame/window of the page, then you could do it quite easily, however.Kevin Yank
CTO, sitepoint.com
I wrote: Simply JavaScript | BYO PHP/MySQL | Tech Times | Editize
Baby’s got back—a hard back, that is: The Ultimate CSS Reference
-
Feb 23, 2001, 19:56 #5
-
Feb 26, 2001, 00:36 #6
Thanks goober and Kevin for your valuable information. Actually I am not good in Java/VB scripting. Can any of you please tell me how to make the forms in a different frame/window of the page as Kevin mention? Your information is very helpful to me.
Thanks again!
Bookmarks