<form class="form" id="regisForm" name="regisForm" method="post"> <span id="check_email"></span> <input type="email" id="email1" name="email1" > <span id="check_email"></span> <input type="email" id="email2" name="email2" > <span id="check_email"></span> <input type="email" id="email3" name="email3" > <span id="check_email"></span> <input type="email" id="email4" name="email4" > <span id="check_email"></span> <input type="email" id="email5" name="email5" > <span id="check_email"></span> <input type="email" id="email6" name="emai6l" > </form>
// **** Check Email **** // if(isset($_POST["email"])) { $value = trim($_POST["email"]); $Records = new Records(); echo $Records->searchDate($value); } public function searchDate($value) { try { $stmt = $conn->prepare("SELECT `regis_mail` FROM `register` WHERE `regis_mail` = :value"); $stmt->bindParam(':value', $value, PDO::PARAM_STR); $stmt->execute(); $count = $stmt->rowCount(); $result = 0; if ($count > 0) { $result = "Found"; } else { $result = "Not Found"; } return $result; } catch (PDOException $e) { echo 'Connection Failed ' . $e->getMessage(); } }
$(document).ready(function(){ $('#email').blur(function(){ var value = $(this).val(); liveCheckEmail(value); }); }); function liveCheckEmail(val) { $.post('check_email.php',{'email':val}, function(data){ if(data == "Found") { $('#check_email').html("<span style='color:red; font-weight:bold;'>Email นี้มีผู้ใช้ในระบบแล้ว</span>"); } else { $('#check_email').html("<span style='color:green; font-weight:bold;'>Email นี้สามารถใช้ได้ </span>"); } }).fail(function(xhr, ajaxOptions, throwError) { alert(throwError); }); }
เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง