01.
<script language=
"javascript"
>
02.
function
fncSubmit()
03.
{
04.
if
(document.form1.pass.value ==
""
)
05.
{
06.
alert(
'กรุณาเลือก ผลทดสอบย้ำยางข้น'
);
07.
document.form1.pass.focus();
08.
return
false;
09.
}
10.
11.
if
(document.form1.pass2.value ==
""
)
12.
{
13.
alert(
'กรุณาเลือก ผลทดสอบสารเคมี'
);
14.
document.form1.pass2.focus();
15.
return
false;
16.
}
17.
18.
return
true;
19.
}
20.
</script>
21.
<body>
22.
<center>
23.
<form name=
"form1"
method=
"post"
24.
action=
"TB_CHECK_SAVE_QC.php?id_no=<?php echo $_GET["
id_no
"];?>"
25.
onSubmit=
"return fncSubmit();"
><!-- ไม่ต้องใส่ javascript: ก็ได้ -->
26.
<input . ... >
27.
<input . ... >
28.
....
29.
<button>Save</button>
30.
</form>
31.
</center>
32.
</body>