} } else { echo '0'; return false; } } if ($_POST['dangky'] == 'dangky') { $name = trim($_POST['HoTen']); $email = trim($_POST['Email']); $phone = str_replace(' ', '', $_POST['DienThoai']); $diachi = trim($_POST['DiaChi']); $ngaysinh = trim($_POST['NgaySinh']); $khoahoc = trim($_POST['KhoaHoc']); $noihoc = trim($_POST['NoiHoc']); if ($name != '' && $phone != '') { $id = $tc->dangky_tructuyen($name, $ngaysinh, $email, $phone, $diachi, $_POST['TotNghiep'], $khoahoc, $noihoc, $_POST['thongtin_khac'], $_POST['ThanhVienHoi']); echo '1'; //include_once('sendmail_smtp/send_dangky.php'); return true; } else { echo '0'; return false; } } if ($_POST['support_online'] == 'support_online') { $i = 0; $qr = $tc->chinhanh_ds($lang); if (mysql_num_rows($qr) > 0) { $name_chinhanh = ''; $info_chinhanh = ''; while ($row = mysql_fetch_array($qr)) {