473,320 Members | 2,104 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,320 software developers and data experts.

How to create a multiple forms in one submit button to insert in the database?..

vyon13
8
hello... i have a problem regarding to my proj that i was working...
this is the prob.. in my application form there are so many categories to be fill up... i realize that if i will put all the categories in one form the user will scroll it down untill he/she fills up all the information...
the alternative solution is i have to cut the form category by category... to avaoid scrolling.. the problem is i dont know how to create a code to handle the data in all the categories before the user will click submit button and all the info typed by user will save on the database... anyone can help me?.. thanks in advace...
Feb 1 '08 #1
3 3181
rpnew
188 100+
hello... i have a problem regarding to my proj that i was working...
this is the prob.. in my application form there are so many categories to be fill up... i realize that if i will put all the categories in one form the user will scroll it down untill he/she fills up all the information...
the alternative solution is i have to cut the form category by category... to avaoid scrolling.. the problem is i dont know how to create a code to handle the data in all the categories before the user will click submit button and all the info typed by user will save on the database... anyone can help me?.. thanks in advace...
Hi,
If you want to submit more than one form on one button click.... then i suppose you need to make simple button and then on its onclick event you can call a function that submits all the form like following.......
Expand|Select|Wrap|Line Numbers
  1. function form_submit()
  2. {
  3.     document.form1.submit();
  4.     document.form2.submit();
  5.     ......
  6. }
  7.  
You can call this function on buttons onclick event..........

Regards,
RP
Feb 1 '08 #2
vyon13
8
Hi,
If you want to submit more than one form on one button click.... then i suppose you need to make simple button and then on its onclick event you can call a function that submits all the form like following.......
Expand|Select|Wrap|Line Numbers
  1. function form_submit()
  2. {
  3.     document.form1.submit();
  4.     document.form2.submit();
  5.     ......
  6. }
  7.  
You can call this function on buttons onclick event..........

Regards,
RP




thanks RP,.. but iam not familiar in javascript.. cn i use php?.. if u have example, if u dont mind kindly share it with me... or email it, heres my add zcherhub_vyon13@yahoo.com
thanks in advance!!.,,
Feb 1 '08 #3
rpnew
188 100+
thanks RP,.. but iam not familiar in javascript.. cn i use php?.. if u have example, if u dont mind kindly share it with me... or email it, heres my add zcherhub_vyon13@yahoo.com
thanks in advance!!.,,
Hi,
Ok now if you are making all the forms on one page then Javascript is better and if you are dividing them into different pages then you can do that with PHP but in that case you need to keep track of the values submitted on the previous.. and in this case you have to submit forms on everypages to get its components value...... i hope you get what i meant to say....... anyway.. post back with your case and if possible with a bit more explaination how do you want to do it? so that i can provide you help with code...

Regards,
RP
Feb 1 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Ryan | last post by:
I currently have two image submit buttons. The code generated looks like so: <input type="image" src="button_in_cart.gif" border="0" alt="Add" title="Add" name="btn_cart" value="buy"> <input...
2
by: sandyde2 | last post by:
Hi all, I get the tough problem and expect to get help.. In a html page, I dynamically created many forms which named as NO+business_id. In each form there are two submit buttons to...
5
by: Codeman II | last post by:
Hi there, I am building a form where the user must upload a picture and fill in his details. Now I have a problem as all of this is on the same form. How will I be able to have the Browse...
2
by: Ghafran Abbas | last post by:
Call this function from the Page_OnLoad event of your asp.net page. This will prevent the user from doing multiple post backs or button clicks. This was designed to not disable the button, because...
5
by: Alex Maghen | last post by:
In ASPX 2.0 with MasterPages and all that, my entire page only has one actual <FORM>. But there are several different sections of the page that provide what are functionally separate forms with...
5
by: c676228 | last post by:
Hi everyone, my colleagues are thinking about have three insurance plans on one asp page: I simplify the plan as follow: text box:number of people plan1 plan2 plan3
1
by: baziltron | last post by:
i am trying to trying to create a simple submit button to allow someone to access a certain page.. by typing a number in and hitting submit, i would want this to take them to a page reserved for...
1
by: ll | last post by:
Hi all, I've inherited a site and am currently looking to redesign a page that displays a table of course curriculum, with each row representing a "Topic" of the curriculum. There is a courseID...
2
by: Sapera | last post by:
I want to create an text field then a submit button. The text field is supposed to be the answer of a question. If the user types the correct answer and clicks submit, he is taken to the next...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.