session_start(); $error_sql = "Lỗi kết nối"; define(does_not_exist, 'Mục này không tồn tại.'); include_once 'class/class.trangchu.php'; $tc = new trangchu(); $lang = $_POST['lang']; include_once 'config.php'; if ($_POST['contact'] == 'contact') { $name = trim($_POST['name']); $email = trim($_POST['email']); $phone = trim($_POST['phone']); $diachi = trim($_POST['diachi']); $message = trim($_POST['message']); if ($name != '' && $email != '' && $phone != '' && $message != '') { if ($tc->insert_contact($name, $email, $phone, $diachi, $message)) { echo '1'; include_once 'sendmail/sendmail.php'; return true; } else { echo '0'; return false; } } else { echo '0'; return false; } } if ($_POST['check_dathang'] == 'check_dathang') { if (count($_SESSION['list_soluong']) > 0) { echo '<input type="button" name="btn_thanhtoan" value="THANH TOÁN" class="btn_popup" style="background-color:#E66460" />';