• March 16, 2023
    <?php
    if($_POST['submit-board']) {
        $url=$_POST['url'];	
        $thai=$_POST['thai'];	
        $topic=$_POST['topic'];
        $detail=$_POST['detail'];			
        $tel=$_POST['tel'];
        $email=$_POST['email'];
        $ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '';
    
        // check if URL is entered and redirect to vir9.com if it is
        if(preg_match('#^https?://#i', $url)){
            header("Location: https://vir9.com");
            exit();
        } else {
            // send the email if the URL is not redirected
            $to = "iii@vir9.com";
            $subject = "vir9.com $thai"; //1
            $sub="..."; //2
            
            // send the email using the mail() function
            mail($to,$subject,$sub,"From: $email");
        }
    }
    ?>
    <form>
    ...
    </form>


เวอไนน์ไอคอร์ส

ประหยัดเวลากว่า 100 เท่า!






เวอไนน์เว็บไซต์⚡️
สร้างเว็บไซต์ ดูแลเว็บไซต์

Categories


Uncategorized