<?php session_start() ; /* add */ $user_login = $_POST['user_login']; $pwd_login = $_POST['pwd_login']; if(isset($user_login) and isset($pwd_login)) { include("config/config.inc.php") ; ?> <html> <head> <title>:: ผลการเข้าสู่ระบบ ::</title> <meta http-equiv="Content-Type" content="text/html; charset=windows-874"> </head> <body bgcolor="#FFFFCC"> <?php $result = mysql_query("select user,password from member where user='$user_login' and password='$pwd_login'") ; $num = mysql_num_rows($result) ; if($num<=0) { echo "<br><br><center><font size='3' face='MS Sans Serif'><b>รหัสผ่านไม่ถูกต้องค่ะ</b></font></center>" ; print "<meta http-equiv=refresh content=3;URL=login.php>"; } else { $dbarr = mysql_fetch_array($result) ; if($user_login!=$dbarr['user'] and $pwd_login!=$dbarr['password']) { echo "รหัสผ่านไม่ถูกต้อง" ; }else { $_SESSION['login_true'] = $user_login; echo "<meta http-equiv='refresh' content='0 ;url=member_detail.php'>" ; } } } ?> </body> </html>
<div id="login"> <h5>Please sign in to get access.</h5> <form name="checkForm" id="login-form" action="login_check.php" class="form" onSubmit="return check()";> <div class="form-group"> <label for="login-username">Username</label> <input type="text" name="user_login" id="login-username" placeholder="Username"> </div> <div class="form-group"> <label for="login-password">Password</label> <input type="password" name="pwd_login" placeholder="Password"> </div> <div class="form-group"> <button type="submit" name="Submit" >Signin </button> </div> <script language="JavaScript"> function check() { if(document.checkForm.user_login.value=="") { alert("กรุณากรอกชื่อที่ใช้ในการล็อกอินด้วยค่ะ") ; document.checkForm.user_login.focus() ; return false ; } else if(document.checkForm.pwd_login.value=="") { alert("กรุณากรอกรหัสผ่านด้วยค่ะ") ; document.checkForm.pwd_login.focus() ; return false ; } else return true ; } </script> <p> <?php echo "<center><font size='2' face='MS Sans Serif'>$echo</font></center>" ; echo "<br>" ; ?></p> </form>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง