DelphiFAQ Home Search:

Submit data from more than one form on one page?

 

comments16 comments. Current rating: 3 stars (9 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:

You are on page 2 of 2, other pages: 1 [2]
2019-05-22, 18:23:24
anonymous from Indonesia  
rating
· Учреждений разных видов деятельности
* За все время победители закупок за все года
· Кто заказывал тендеры по 44 и 223 федеральным законам
· Avito, юла, и остальные сайты объявлений
* Резюме, индивидуальные контакты специалистов
* Контакты физических лиц
· Данные директоров

https://baseo.ru
You are on page 2 of 2, other pages: 1 [2]

 

 

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: