1 / 4
Computer Service
2 / 4
Networking Service
3 / 4
Web Development Service
4 / 4
Software Development Service
TNW - ICT Solutions
  • Home
  • Available Courses 
  • Available Services 
  • Website Samples 
  • Search Log In
  • <?php
     if(isset($_POST["username"]) && isset($_POST["password"])){
      $username = $_POST["username"];
      $password = $_POST["password"];
    
      if(!empty($username) && !empty($password)){
       echo 'Welcome to TNW, '.$username.'!';
      }else{
       echo 'Fill in all fields!';
      }
     }
    ?>
    
    <form action = "test.php" method = "POST">
     Username:<br />
     <input type = "text" name = "username"><br /><br />
     Password:<br />
     <input type = "password" name = "password"><br /><br />
     <input type = "submit" value = "Log In">
    </form>