<?php if (!empty($txtsignin) && !empty($txtpasswd1)) { require ("connect/connect.php"); $sql="select * from customer where (c_login='$txtsignin' and c_passwd='$txtpasswd1')"; $result=mysql_query($sql,$conn); $total=mysql_num_rows($result); $rs=mysql_fetch_array($result); $your_nam=$rs[c_fullname]; // echo $your_nam; if($total){ session_start(); session_register("valid_uname"); session_register("valid_pwd"); $valid_uname=$rs[c_id]; $valid_pwd=$rs[c_passwd]; mysql_close($conn); echo"<script language='JavaScript'>"; echo"alert('ยินดีต้อนรับท่านสมาชิก $your_nam');"; echo"</script>"; echo "<meta http-equiv='refresh' content='0;url=customer.php' />"; // header( "Location: customer.php" ); }// ปิด if total else { ?> <!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>Untitled Document</title> </head> <body> <p> </p> <?php } } else { //header( "Location: index.php" ); ?> <table cellspacing="1" cellpadding="4" width="47%" bgcolor="#333333" border="0" align="center"> <tbody> <tr> <td bgcolor="#FFFFFF"><div align="center"><b><font face="MS Sans Serif" size="-2" color="#FF0000">Error !!! Message </font></b> </div></td> </tr> <tr bgcolor="#FFFFFF"> <td><div align="center"> <p><br /> <font face="MS Sans Serif" size="-2"> ไม่สามารถใช้งานได้อาจเกิดจากชื่อหรือรหัสผู้ใช้ผิดพลาด</font></p> <p><font face="MS Sans Serif" size="-2"> <input name="Reset2" type="reset" class="button" onclick="javascript:location='customer.php'" value="กลับ" /> <br /> <br /> </font></p> </div></td> </tr> </tbody> </table> </body> </html> <? } ?>
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง