473,405 Members | 2,444 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

submitting more than one form

Hi all,
I don't know if this is possible or if it even makes sense, but this is what
I want to do. I have a page with a form to fill in a timesheet for a user.
Depending on how many users did a "job", a form will appear on the page for
each user. So basically, you could have 3 forms, all with the same names etc.
and the only thing distinguishing them is a hidden input with userID and
different data for each user. Now what I want the person to be able to do is
fill out all the forms on the page and submit them at one time, rather than
one at a time. Then in the asp, I'd like to iterate through each form that
was submitted (obv I don't know how many were so I assume I'd go through a
collection if one exists) and process them one after the next.
Is this possible and if so, how do I submit them all together and how do I
then go through them on the asp side.

Thanks in advance for any help or for a better approach to this prob.

--
Sara
Jul 22 '05 #1
3 1328
"Sara" wrote in message
news:BF**********************************@microsof t.com...
: I don't know if this is possible or if it even makes sense, but this is
what
: I want to do. I have a page with a form to fill in a timesheet for a user.
: Depending on how many users did a "job", a form will appear on the page
for
: each user. So basically, you could have 3 forms, all with the same names
etc.
: and the only thing distinguishing them is a hidden input with userID and
: different data for each user. Now what I want the person to be able to do
is
: fill out all the forms on the page and submit them at one time, rather
than
: one at a time. Then in the asp, I'd like to iterate through each form that
: was submitted (obv I don't know how many were so I assume I'd go through a
: collection if one exists) and process them one after the next.
: Is this possible and if so, how do I submit them all together and how do I
: then go through them on the asp side.
:
: Thanks in advance for any help or for a better approach to this prob.

I don't know if what you're asking is possible. I have written an example
to show you how to build a form with a dynamic number of elements. You
would be passing the number of elements somehow to this page, either posting
from another form or on the URL as a querystring element. I have you select
the number of users from a range of 1 to 5.

When you post, it will create the form for user input. You can pass the
user IDs but here I'm having you enter them, along with a name and an age,
as an example.

When you post again, I will display the results. You could use this area to
also submit to a database.

This is all done on one page and although a simple example, it can really be
any size simply by adding more input fields. You could really be creative
and make the fields dynamic as well.

http://kiddanger.com/lab/formsarray.asp

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #2
Thanks Roland.
I'm aware that I can do it your way, I was just hoping I could do it the way
I suggested cause it's simpler!
But I think I'll take your suggestion because my way doesn't seem possible.

Sara

"Roland Hall" wrote:
"Sara" wrote in message
news:BF**********************************@microsof t.com...
: I don't know if this is possible or if it even makes sense, but this is
what
: I want to do. I have a page with a form to fill in a timesheet for a user.
: Depending on how many users did a "job", a form will appear on the page
for
: each user. So basically, you could have 3 forms, all with the same names
etc.
: and the only thing distinguishing them is a hidden input with userID and
: different data for each user. Now what I want the person to be able to do
is
: fill out all the forms on the page and submit them at one time, rather
than
: one at a time. Then in the asp, I'd like to iterate through each form that
: was submitted (obv I don't know how many were so I assume I'd go through a
: collection if one exists) and process them one after the next.
: Is this possible and if so, how do I submit them all together and how do I
: then go through them on the asp side.
:
: Thanks in advance for any help or for a better approach to this prob.

I don't know if what you're asking is possible. I have written an example
to show you how to build a form with a dynamic number of elements. You
would be passing the number of elements somehow to this page, either posting
from another form or on the URL as a querystring element. I have you select
the number of users from a range of 1 to 5.

When you post, it will create the form for user input. You can pass the
user IDs but here I'm having you enter them, along with a name and an age,
as an example.

When you post again, I will display the results. You could use this area to
also submit to a database.

This is all done on one page and although a simple example, it can really be
any size simply by adding more input fields. You could really be creative
and make the fields dynamic as well.

http://kiddanger.com/lab/formsarray.asp

HTH...

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp

Jul 22 '05 #3
"Sara" wrote in message
news:DC**********************************@microsof t.com...
: Thanks Roland.

You're welcome.

: I'm aware that I can do it your way, I was just hoping I could do it the
way
: I suggested cause it's simpler!
: But I think I'll take your suggestion because my way doesn't seem
possible.

If it is possible, I'm not aware of it.
Good luck.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
Jul 22 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Display Name | last post by:
the customer I'm developing a site for uses a canned form-parsing page that allows her to have an email subscription opt-in page add emails to a list she can manage using a link that you point your...
2
by: Greg T | last post by:
Hi, I have a rather long form that I don't want people submitting unless they are absolutely sure they are ready. I figured the easiest way to prevent an accidental form submission by way of...
5
by: Don | last post by:
I have a need to submit a form, but don't need the user to click on a button. How do I do this? Is there some way, using JavaScript, to setup a <form> tag to do this? Thanks, Don ----==...
2
by: Syam | last post by:
Hello everyone, I am just barely two months old into learning asp.net and vb.net. Currently I am working on a project to store customer database. I have a question about creating a preview page:...
4
by: Super Steve | last post by:
I'm trying to write a little script that disables the submit button on a form, changes the text of the button, and then submits the form. Can anyone tell me why this works ok: <input...
16
by: browntown | last post by:
so I have this application I'm nearly finished with. The only thing the client has requested is the ability to submit the form by pressing "enter". I didn't think this would be a huge pain in the...
3
by: kgbalaji1980 | last post by:
Hi all, i want the jscript coding for more than one form in one page and submitting the same . ie one parent form and one append button when we click that button one child form will display...
4
by: paratge | last post by:
Hi, I'm updating one form in an iframe, with another in a main page. That works fine, th probliem is how to submit two forms with one click. For now i get an error "permission denied" how can...
18
by: NavinM | last post by:
I have a couple of forms that are misbehaving in FireFox, but work fine in IE. when i do submit( with submit button) a javascript function validates all of the fields entered, and stops the...
1
by: dittu | last post by:
How to close the popup window when submitting the form? I have a sample.jsp. In that page one button is there. when button pressed, open popup window contains one "text box" and one " submit...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.