DelphiFAQ Home Search:

Submit data from more than one form on one page?

 

comments8 comments. Current rating: 4 stars (3 votes). Leave comments and/ or rate it.

To achieve this, you need to cheat - by actually using two or better three pages, loaded into separate frames.

|--------------------|
|Framed 1            |
|(containing Form1)  |
|--------------------|
|Framed 2            |
|(containing Form2)  |
|--------------------|
|Frame 3             |
|   submit button    |
|--------------------|

The submit button in page 3 will execute two submits as shown in the following code snippet. This button doesn't haven have to be part of a form. In fact, it could be an image or a regular button or even just a link with an href="javascript:..." tag.

<input type="button"
onClick="parent.frame1name.form1.submit();parent.frame2name.form2.submit()">

Comments:

2005-11-07, 17:14:41
anonymous from United Kingdom  
rating
blah
2006-09-25, 10:24:34
fff from Thailand  
ggg
2006-10-28, 16:46:45
anonymous from Thailand  
rating
2007-02-12, 03:14:05
anonymous from Egypt  
But what is the benefit if it will use only the last form data
2008-03-18, 16:23:28
anonymous  
rating
2009-08-27, 02:01:10
anonymous from India  
ok


Keywords:
2009-08-27, 02:09:58
anonymous from India  
Nice Pic


Keywords:
2009-08-27, 02:12:34
anonymous from India  
My Bike


Keywords:

 

 

NEW: Optional: Register   Login
Email address (not necessary):

Rate as
Hide my email when showing my comment.
Please notify me once a day about new comments on this topic.
Please provide a valid email address if you select this option, or post under a registered account.
 

Show city and country
Show country only
Hide my location
You can mark text as 'quoted' by putting [quote] .. [/quote] around it.
Please type in the code:

Please do not post inappropriate pictures. Inappropriate pictures include pictures of minors and nudity.
The owner of this web site reserves the right to delete such material.

photo Add a picture: