01.
<html>
02.
<head>
03.
<title></title>
04.
</head>
05.
<body>
06.
<script language=
"javascript"
>
07.
function
chibi(){
08.
var
t1;
09.
var
sum;
10.
t1=parseFloat(document.form1.text.value);
11.
sum=t1 * 5500 * <?php
echo
$row_Recordset1
[
'baht'
]; ?>;
12.
document.form1.total.value=sum;
13.
14.
}
15.
</script>
16.
<form action=
"#"
method=
"post"
name=
"form1"
>
17.
<input type=
"text"
name=
"text"
id=
"text"
value=
""
Onchange=
"JavaScript:return chibi();"
/>
18.
19.
20.
<input type=
"image"
name=
"btn"
id=
"btn"
src=
"martin.png"
width=
"35"
height=
"35"
>
21.
<input type=
"text"
name=
"total"
id=
"total"
/>
22.
23.
<?php
echo
$row_Recordset1
[
'baht'
]; ?>
24.
</form>
25.
</body>
26.
</html>