เราอยากเขียนโค๊ด php ให้มันเป็น message box แจ้งเตือน แบบว่าต้องกรอกข้อมูลให้ครบถ้วน ใส่ได้เฉพาะตัวเลข ทำนองนี้อ่ะค่ะ
<form class="modal-content animate" action="check.php" method="post" >
<font color="black"> <center><font size = "5">เข้าสู่ระบบ</font></center>
<table border="0" width="80%" bgcolor="#87CEEB" align="center">
<br>
<tr align="left">
<td> ชื่อผู้ใช้งาน : </td>
<td><input type="text" name="mem_user_name"/></font></td>
</tr>
<tr align="left">
<td> รหัสผ่าน :</td>
<td><input type="password" name="mem_password"/></font></td>
<tr></table>
<center><input type="submit" value="เข้าระบบ"/></a></center>
<center><input type="reset" value="ยกเลิก"/></center></font>
</div></center>
</td>
</form>
คือต้องเขียนโค๊ด พวก scrip ดักตรงไหนคะ ลองใส่ตามตัวอย่างดูแล้วแต่มันไม่น่าจะถูก หรือต้อง ไปทำในหน้า check.php คะ อันนี้ยอมรับว่ายังไม่เข้าใจ พวก JavaScript เท่าไหร่
จะเขียนโค๊ด ดัก error ให้มันแจ้งเตือนเป็น message box ต้องเขียนประมาณไหน
<form class="modal-content animate" action="check.php" method="post" >
<font color="black"> <center><font size = "5">เข้าสู่ระบบ</font></center>
<table border="0" width="80%" bgcolor="#87CEEB" align="center">
<br>
<tr align="left">
<td> ชื่อผู้ใช้งาน : </td>
<td><input type="text" name="mem_user_name"/></font></td>
</tr>
<tr align="left">
<td> รหัสผ่าน :</td>
<td><input type="password" name="mem_password"/></font></td>
<tr></table>
<center><input type="submit" value="เข้าระบบ"/></a></center>
<center><input type="reset" value="ยกเลิก"/></center></font>
</div></center>
</td>
</form>
คือต้องเขียนโค๊ด พวก scrip ดักตรงไหนคะ ลองใส่ตามตัวอย่างดูแล้วแต่มันไม่น่าจะถูก หรือต้อง ไปทำในหน้า check.php คะ อันนี้ยอมรับว่ายังไม่เข้าใจ พวก JavaScript เท่าไหร่