so, ich habs jetzt erstmal so gelöst:
function putform(formular) {
getstring = 'winproc.php?';
for (var element in formular.elements) {
getstring = getstring + element.name + "=" + element.value + "&";
}
parent.data.document.forms.winproc.action = getstring;
parent.data.document.forms.winproc.submit();
}
dies wird als action, beispielsweise in diesem Formular abgesetzt:
<center>
<form id="fsource" action="javascript:putform(this);">
<input type="hidden" name="action" value="test">
<input type="text" name="meintext" id="meintext" value="name"><br>
<input type="submit" value="Senden">
</form>
</center>
Mein Zielformular sieht so aus:
<center>
<form id="fdest">
<input type="hidden" name="action" value="test">
<input type="text" id="deintext"><br>
</form>
</center>
Die winproc.php tut dieses hier:
<html>
<head>
<SCRIPT type=text/javascript>
<!--
function startit() {
for (var data in document.forms[0].elements) {
parent.frames.main.document.getElementById(data.name).value = data.value;
}
}
//-->
</SCRIPT>
</head>
<body onload="startit();">
<!-- Formularfeld mit Fensterdaten -->
<FORM id=winproc action=winproc.php method=post>
%formdata%
</FORM>
</body>
</html>
wobei %formdata% dynamisch mit hidden inputs gefüllt wird.
Allerdings ist schon der getstring scheinbar nicht richtig zusammen gesetzt.
Als Fehler bekomme ich ein
parent.frames.main.document.getElementById(...) ist NULL oder kein Objekt (winproc). (Leider habe ich nur den IE als Browser und nen TextPAD zum Entwickeln)