Hilfe bei Formularen

marloy87

Mitglied
Ich möchte ein Formular so programmieren, dass sich wenn ich auf einen link klicke sich ein anderes fenster öffnet, indem ein weiteres formular steckt. Das Ergebnis soll an das "Hauptformular" gesendet werden.

Wie mache ich das? Bin ich damit bei PHP überhaupt richtig?

Schonmal danke für eure antworten
 
Nein, da brauchst du Javascript!

PHP:
Form1:
<a href="javascript:window.open(...)">Klick</a>
<form name="form">
<input type="text" name="txt">
</form>
Form2:
<form name="form">
<input type="text" name="txt">
<input type="button" value="submit" onClick="javascript:window.opener.document.form.txt.value=window.document.form.txt.value">
</form>
So müsste das klappen :)
 
Zurück