<?php session_start(); if(isset($user_login) and isset($pwd_login)) { include("../connectdb/config.inc3.php") ; $sql = "select * from admin where user='$user_login' and password='$pwd_login'" ; $result = mysql_query($sql) ; $row = mysql_num_rows($result) ; if($row<=0){ $status = "<center><font size='2' face='MS Sans Serif' color='red'><b>รหัสผ่านของคุณไม่ถูกต้อง</b></font></center>" ; session_unregister("status") ; } else { $login_true = $user_login ; session_register("login_true") ; echo "<meta http-equiv='refresh' content='0 ;url=menu.php'>" ; exit() ; } } ?> <!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=windows-874" /> <title>login</title> </head> <body> <form id="checkForm" name="checkForm" method="post" action="<?php echo "$PHP_SELF" ; ?>"> username<input type="text" name="user_login" id="user_login" /> password<input type="password" name="pwd_login" id="pwd_login" /> <input type="submit" name="button" id="button" value="login" /> <?php echo $status ; ?> </tr> </form> </body> </html>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง