<html>
<head>
<title>A Basic Html Form </title>
</head>
<body>

<?php 

if(isset($_POST['submit'])){

$user=$_POST['username'];

 if ($user=='me'){
  echo 'Matched';
  }
  
  else {
  echo 'Sorry';
  }
 

 }
 
 
 
?>


<form method="post" action="#">
  <input type = "text" name="username" value= "username">
  <input type="submit" name="submit" value="Get Selected Values" />
</form>