var chekchar = /^[A-Za-z]+\.+[ก-ฮ]/;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script> var chknum = /^[0]+([0-9]{9})/; var chekchar = /^[A-Za-z]+\.+[ก-ฮ]/; var chkemail = /^[a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.([a-zA-Z]{2,4})$/; var errors = []; function checkregis(form) { alert (form.tel.value); alert (form.name.value); alert (form.email.value); var tel = form.tel.value; var name = form.name.value; var email = form.email.value; if ( !chknum.test(tel)) { alert ("No math tel"); return false; } if (!chekchar.test(name)) { alert ("No mat name"); return false; } if (!chkemail.test(email)) { alert ("No math emai"); return false; } return true; } </script> </head> <body> <form id="form1" name="form1" method="post" action="#" onsubmit="return checkregis(this);"> <table width="50%" border="0" cellspacing="0" cellpadding="0"> <tr> <td scope="col">ID</td> <td scope="col"><label> <input type="text" name="user" id="user" /> </label></td> </tr> <tr> <td>TEL</td> <td><label> <input type="text" name="tel" id="tel" /> </label></td> </tr> <tr> <td>Email</td> <td><label> <input type="text" name="email" id="email" /> </label></td> </tr> <tr> <td>NAME</td> <td><label> <input type="text" name="name" id="name" /> </label></td> </tr> <tr> <td colspan="2" align="center"><label> <input type="submit" name="submit" id="submit" value="Submit" /> </label></td> </tr> </table> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง