faqts : Computers : Programming : Languages : JavaScript : Forms

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

8 of 16 people (50%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

How can you submit 2 forms:one popup second:main window

Jan 21st, 2003 01:58
Alain vdh, Jean-Bernard Valentaten, Isma B,


Every Form has a submit-method, that you can call. So instead of having 
a <input type="submit"> button, create a <input type="button" 
onClick="firstForm.submit(); secondForm.submit()" value="Submit"> 
button. All you need is to know how to access the forms, but that's 
pretty easy. If you can't figure it out by yourself, email me your 
pages code, I'll send it back with the functions you need.
HTH,
Jean
I tried and it does not work in IE5
the only way i know to do this is to add all input fields from one form 
to the other
as explained in 
http://www.faqts.com/knowledge_base/view.phtml/aid/1785/fid/129