01.
<html>
02.
<head><title>test Query</title>
03.
<script type=
"text/javascript"
>
04.
function
js_popup(theURL,width,height) {
05.
leftpos = (screen.availWidth - width) / 2;
06.
toppos = (screen.availHeight - height) / 2;
07.
window.open(theURL,
"viewdetails"
,
"width="
+ width +
",height="
+ height +
",left="
+ leftpos +
",top="
+ toppos);
08.
}
09.
</script>
10.
</head>
11.
<body>
12.
<form id=
"frm"
name=
"frm"
method=
"post"
action=
""
>
13.
14.
Code =><input type=
"text"
id=
"code"
name=
"code"
value=
"<?=$code?>"
readonly><br>
15.
Name =><input type=
"text"
id=
"name"
name=
"name"
value=
"<?=$name?>"
readonly><br>
16.
<input type=
"button"
id=
"sub"
name=
"sub"
value=
"Insert Code And Name"
onclick=
"js_popup('popup.php',600,470); return false;"
>
17.
</form>
18.
</body>
19.
</html>