01.
<?
02.
if
(
$_POST
[txt]){
03.
04.
05.
echo
'<script type=
"text/javascript"
>
06.
window.opener.document.getElementById(
"txtplacedetail"
).innerHTML =
"'.nl2br($_POST[txt]).'"
;
07.
show_loader();
08.
09.
function
show_loader()
10.
{
11.
setTimeout(
"window.close();"
,1000);
12.
}
13.
</script>';
14.
15.
}
16.
?>
17.
18.
<form method=
"post"
action=
""
>
19.
20.
<table width=
"80%"
border=
"0"
align=
"center"
cellpadding=
"0"
cellspacing=
"0"
>
21.
<tr height=
"60"
>
22.
<td width=
"20%"
align=
"right"
valign=
"top"
>บรรยายสถานที่ : </td>
23.
<td align=
"left"
valign=
"top"
>
24.
<textarea name=
"txt"
id=
"txt"
rows=
"20"
cols=
"60"
></textarea><br><br></td>
25.
</tr>
26.
27.
</table>
28.
<br />
29.
30.
31.
<input type=
"submit"
value=
"ตกลง"
>
32.
33.
</form>