Hallo,
... wie soll ich das anstellen [...] das die Var an die Hauptseite gesendet wird, also besser gesagt nur übergeben via JS, das die Variable 'var' in das <input> Feld "datum" eingetragen wird?
Etwa so sollte es gehen ...
<a href="javascript:opener.document.formularname.datum.value=var">
Schau doch auch mal, wie das bei PhpDTLookUp gemacht wird ...
http://www.scripts4u.de/php3.phtml
Grüße,
Sebastian