<form name="form1" method="post" action="login.php"> <table width="100%" border="0" cellspacing="2" cellpadding="2"> <tr> <td width="16%"> </td> <td width="20%"><span class="style7">User</span></td> <td width="64%"> <font face="MS Sans Serif" size="-2"> <input name="txtUser" type="text" class="txtbox" id="txtUser" size="20"> </font></td> </tr> <tr> <td width="16%"> </td> <td width="20%"><span class="style7">Password</span></td> <td width="64%"> <font face="MS Sans Serif" size="-2"> <input name="txtPass" type="password" class="txtbox" id="txtPass" size="20"> </font></td> </tr> <tr> <td width="16%"> </td> <td width="20%"><font face="MS Sans Serif" size="-2"> </font></td> <td width="64%"><font face="MS Sans Serif" size="-2"> </font></td> </tr> <tr> <td width="16%"> </td> <td width="20%"><font face="MS Sans Serif" size="-2"> </font></td> <td width="64%"> <font face="MS Sans Serif" size="-2"> <input type="submit" name="Submit" value="ล็อกอิน" class="button"> <input type=button class=button value="ยกเลิก" onClick="javascript:location='../index.php'"> </font></td> </tr> </table> <br> </form>
<? ob_start(); session_start(); require('../connect/connect.php'); $sql = "select * from admin where user='$_POST[txtUser]' and pass='$_POST[txtPass]'"; $dbquery = mysql_query($sql); $result= mysql_fetch_array($dbquery); if($result) { $_SESSION["user"]=$_POST[txtUser]; $_SESSION["pass"]=$_POST[txtPass]; $_SESSION["status"]="admin"; $_SESSION["adminlogin"]=true; session_write_close(); header('location:menu.php'); } else { echo"user หรือ password ไม่ถูกต้อง "; } ?>
<? require('../connect/connect.php'); $sql = "select * from admin where user='$_POST[txtUser]' and pass='$_POST[txtPass]'"; $dbquery = mysql_query($sql); $result= mysql_fetch_array($dbquery); if($result) { $_SESSION["user"]=$_POST[txtUser]; $_SESSION["pass"]=$_POST[txtPass]; $_SESSION["status"]="admin"; $_SESSION["adminlogin"]=true; session_write_close(); header('location:menu.php'); } else { echo"<br><br><center>user หรือ password ไม่ถูกต้อง <br><br><br> | <a href='javascript:history.back()'>กลับไปแก้ไข</a> |<br><br>"; } if(vType == 'admin') { header('location:menu.php'); } else { header('location:..sale/cart.php'); } ?>
header('location:sale/cart.php');
<? require('../connect/connect.php'); $sql = "select * from admin where user='$_POST[txtUser]' and pass='$_POST[txtPass]'"; $dbquery = mysql_query($sql); $result= mysql_fetch_array($dbquery); if($result) { $_SESSION["user"]=$_POST[txtUser]; $_SESSION["pass"]=$_POST[txtPass]; $_SESSION["status"]="admin"; $_SESSION["adminlogin"]=true; session_write_close(); header('location:menu.php'); } else { echo"<br><br><center>user หรือ password ไม่ถูกต้อง <br><br><br> | <a href='javascript:history.back()'>กลับไปแก้ไข</a> |<br><br>"; } if(vType == 'admin') { header('location:menu.php'); } else { header('location:cart.php'); } ?>
if(vType == 'admin') { header('location: ../menu.php'); } else { header('location:cart.php'); }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง