예제 #1
0
if (filter_var($email, FILTER_VALIDATE_EMAIL) == false) {
    ?>
<div id="email_false">
	<?php 
    if ($lang == "vn") {
        echo "Địa chỉ email không hợp lệ.";
    } else {
        echo "Email address is invalid.";
    }
    ?>
</div>
<?php 
} else {
    $check = $i->checkEmailMarketing($email);
    if ($check == 1) {
        $i->addEmailMarketing($email);
        ?>
<div id="email_true">
	<?php 
        if ($lang == "vn") {
            echo "Cám ơn bạn đã yêu cầu nhận báo giá.";
        } else {
            echo "Thank you for your request.";
        }
        ?>
</div>
<?php 
    } else {
        ?>
<div id="email_false">
	<?php