Habe es wohl doch geschafft!
Main-Frame:
if (isset($abspeichern)or isset($vorschau))
if (isset($abspeichern)or ($vorschau==1))
{
$query = "UPDATE aaa SET sss='sss'....
}
if ($vorschau==1){...window.open('ggg.php')}
}
<form name="form" method="post" action="<?print($PHP_SELF);?>">
<input type="hidden" name="vorschau" value="">
Form1
Form2
..
</form>
Top-Frame:
<form name="form2" method="post" action="<?print($PHP_SELF);?>">
<input type="button" name="vorschau" value="Vorschau" onClick="parent.main.document.forms.form.submit()">
<input type="button" name="vorschau" value="Vorschau" onClick="parent.main.document.form.vorschau.value=1;
parent.main.document.forms.form.submit()">»» </form>
Vielen Dank und die besten Grüße aus Braunschweig
Fabian