DOM stands for Document Object Model. It has nothing to do with PHP. It´s a client thing (HTML, JavaScript). Say you want to get to the first form in HTML document. Then you write:
document.forms[0]
if you want to get the second form:
document.forms[1]
and so on... With DOM you "step" your way "down" in the document. Much the same way you do when you want to get to a file on your computer. The file may be residing in say wwwroot in Inetpub on harddrive C hence:
C:\Inetpub\wwwroot. So if you want to get to the file you have to "step" your way "down":
C: -> Inetpub -> wwwroot -> the_file.file
It´s the same with DOM:
document -> forms[0] -> name
This would give you the name of the form.
Conclusion! DOM is NOT a PHP matter :-)
If I understand your problem you should do like this:
Having say 3 frames (top, main and bottom). In main there is a form that the user actually can see and fill with information. Top and bottom both has a hidden form each. You could when the user press submit send the information from the form in main to the hidden forms both in top and in bottom. After this you POST the form in top and the form in bottom. Why now you would like to do a thing like this is a mystery to me ;-)
Good Luck and get back to me if you have any trouble
/Andrin