Inserting Data mysqli not working
<p>Here is my HTML with form section... I cant understand where is my mistake</p>

<pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;

&lt;head&gt;
  &lt;title&gt;&lt;/title&gt;
  &lt;link rel="stylesheet" type="text/css" href="loginStyle.css"&gt;
  &lt;link href="Bootstrap/css/bootstrap.min.css" rel="stylesheet"&gt;
  &lt;meta charset="utf-8"&gt;
  &lt;meta name="viewport" content="width=device-width, initial-scale=1 user-scalable=no"&gt;
  &lt;link href='https://fonts.googleapis.com/css?family=Jura:600' rel='stylesheet' type='text/css'&gt;
  &lt;link rel="stylesheet" type="text/css" href="Font Awseome Glyphicons/css/font-awesome.min.css"&gt;
  &lt;link href='https://fonts.googleapis.com/css?family=Lora:700' rel='stylesheet' type='text/css'&gt;
  &lt;link href='https://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'&gt;
  &lt;link rel="stylesheet" href="Owl Carousel/owl-carousel/owl.carousel.css"&gt;
  &lt;link rel="stylesheet" href="Owl Carousel/owl-carousel/owl.theme.css"&gt;
&lt;/head&gt;

&lt;body&gt;


  &lt;div class="container"&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-12" style="margin-top:8%"&gt;
        &lt;h2 class="text-center"&gt;Be a Part of World&lt;/h2&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-6 col-md-offset-3"&gt;
        &lt;form role="form" id="loginForm" action="regCheck.php" method="POST"&gt;
          &lt;div class="form-group"&gt;
            &lt;label for="regName"&gt;
              &lt;h4&gt;Name&lt;/h4&gt;
            &lt;/label&gt;
            &lt;input type="text" id="regName" class="form-control" placeholder="Your name here..." name="name"&gt;
            &lt;div class="alert"&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
            &lt;label for="regLogin"&gt;
              &lt;h4&gt;Login&lt;/h4&gt;
            &lt;/label&gt;
            &lt;input type="text" placeholder="Login Here..." id="regLogin" class="form-control" name="login"&gt;
            &lt;div class="alert"&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
            &lt;label for="regPass"&gt;
              &lt;h4&gt;Password&lt;/h4&gt;
            &lt;/label&gt;
            &lt;input type="password" placeholder="Password Here..." id="regPass" class="form-control" name="pass"&gt;
            &lt;div class="alert"&gt;&lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
            &lt;input type="submit" value="Sign Up" class="btn btn-danger btn-lg" id="regSubmit" name="submit"&gt;
          &lt;/div&gt;
        &lt;/form&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-12"&gt;
        &lt;h3 class="text-center"&gt;&lt;strong&gt;...0r Join Us With&lt;/strong&gt;&lt;/h3&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    &lt;div class="row"&gt;
      &lt;div class="col-md-6 col-md-offset-4"&gt;
        &lt;ul class="list-inline"&gt;
          &lt;li&gt;&lt;a href="facebook.com"&gt;&lt;span class="fa fa-facebook-official " aria-hidden="true"&gt;&lt;/span&gt; Facebook&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="twitter.com"&gt;&lt;span class="fa fa-twitter" aria-hidden="true"&gt;&lt;/span&gt; Twitter&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="youtube.com"&gt;&lt;span class="fa fa-youtube " aria-hidden="true"&gt;&lt;/span&gt; Youtube&lt;/a&gt;
          &lt;/li&gt;
          &lt;li&gt;&lt;a href="instagram.com"&gt;&lt;span class="fa fa-instagram " aria-hidden="true"&gt;&lt;/span&gt; Instagram&lt;/a&gt;
          &lt;/li&gt;
        &lt;/ul&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;

  &lt;script type="text/javascript" src="JQuery/jquery-1.11.3.min.js"&gt;&lt;/script&gt;
  &lt;script src="Owl Carousel/owl-carousel/owl.carousel.js"&gt;&lt;/script&gt;
  &lt;script src="Bootstrap/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript" src="script.js"&gt;&lt;/script&gt;
&lt;/body&gt;

&lt;/html&gt;
</code></pre>

<p>Here is section with checking registration</p>

<pre><code>&lt;?php
$con = mysqli_connect("localhost", "root", "");
if (!$con) {
    die("Failed Databse Connection");
}

$name = $_POST["name"];
$login = $_POST["login"];
$pass = $_POST["pass"];
$query = "INSERT INTO db_users(name, pass,login) VALUES ('$name', '$pass', '$login')";

if (isset($_POST["submit"])) {
    mysqli_query($con, $query);
}
?&gt;
</code></pre>