<!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> </head> <body> <?php include ('../include/config.php') if ($_POST[button] == 'Submit'){ $sql = "select * from tbl_member where username='$_POST[user]' and password='$_POST[pass]' "; $query = mysql_query($sql,$conndb); $rusult = mysql_fetch_array($query); $num = mysql_num_rows($query); if ($num <= 0 ){ echo "ไม่พบข้อมูล"; } else { echo "ถูกต้อง"; } ?> <form id="form1" name="form1" method="post" action=""> <p> <label for="user"></label> Username : <input type="text" name="user" id="user" /> <label for="pass"></label> </p> <p>Password : <input type="text" name="pass" id="pass" /> </p> <p> <input type="submit" name="button" id="button" value="Submit" /> </p> </form> </body> </html>
Quote:}
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง