<?php 

    if(isset($_POST['email'])){
        $email = trim(strtolower($_POST['email']));        
        
        require_once 'msg.php';
        
    }


?>



<html>
    <head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="https://cdn.tailwindcss.com"></script>
</head>
    <body>
        <form class="form-group mx-5 " action="" method="POST">
            <div class="form-group ">
            
                <label class="block font-semibold">Enter Email</label>
                
                <input name="email" class="form-control ring-1 ring-black border-black-500  " value="<?php if(isset($_POST['email'])){ echo $_POST['email'];} ?>" >    
                
            </div>
             
               <div class="form-group">
                   <button class="bg-blue-500 mt-3 p-1 block ring-2 ring-blue-500 text-white w-full hover:bg-blue-600 ring-blue-600">Send</button>
               </div>
                
        </form>

    </body>
</html>