01.
<?php
02.
<html>
03.
<head>
04.
<title>Simple Form</title>
05.
</head>
06.
<body>
07.
<script language=
"JavaScript"
>
08.
<!--
09.
function
windowOpen() {
10.
var
11.
myWindow=window.open(
'popup.htm'
,
'windowRef'
,
'width=200,height=200'
);
12.
if
(!myWindow.opener) myWindow.opener = self;
13.
}
14.
15.
<input name=
"openPopup"
type=
"button"
id=
"openPopup"
16.
onClick=
"Javascript:windowOpen();"
value=
"Get Value"
/>
17.
<form name=
"form1"
id=
"form1"
method=
"post"
action=
""
>
18.
<input type=
"text"
value=
""
name=
"output"
></input>
19.
</form>
20.
</body>
21.
</html>
22.
23.
?>