title: PHP Not running on submit
body: <p>I am making a login system, and I have used similar code to this on other sites, but it just doesn't seem to be submitting for me? No errors, the page just stays exactly the same. Anyone got any ideas</p>
  
  <pre><code>&lt;?php
  
      if(isset($_POST['submit'])){
  
      $user = $_POST["user"];
      $raw = $_POST["password"]; 
      $hash = md5($raw);
  
  
      if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
          $ip = $_SERVER['HTTP_CLIENT_IP'];
      } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
          $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
      } else {
          $ip = $_SERVER['REMOTE_ADDR'];
  }
  
  
          $con=mysqli_connect("localhost","bans","(My Password Here)","bans");
  if (mysqli_connect_errno()) {
    echo "Error ";
  
  }
  
      $check = mysqli_query("$con, SELECT hash FROM panel WHERE user = '$user'");
  
      if ($hash == $check) {
        $insert = mysqli_query("$con, INSERT INTO panel (online, ip)
        VALUES ('1', '$ip')");
  
    } else {
  
      echo '&lt;div class="alert alert-danger"&gt;You are not staff/have entered incorrect information!&lt;/div&gt;';
  
    }
  }
  
  ?&gt;
  </code></pre>