title: Why this code inserts blank?
body: <p>I´m trying to create a form connected to a database but when I fill out the form and I refer to the table in phpMyAdmin I see that it have entered a blank record instead of form data. I´m using PhpStorm.</p>
  
  <p>I think all this code is correct...</p>
  
  <p>That is the form of the .html:</p>
  
  <pre><code>&lt;form id="form1" name="form1" method="post" action="index.php"&gt;
     &lt;label for="userSignUp"&gt;Email&lt;/label&gt;
     &lt;input type="text" name="userSign" id="userSignUp" /&gt;
     &lt;label for="passwordSignUp"&gt;Password&lt;/label&gt;
     &lt;input type="password" name="passwordSign" id="passwordSignUp" /&gt;
     &lt;input type="submit" name="Submit" id="Submit" value="Submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I have the following .php:</p>
  
  <pre><code>&lt;?php
  $servername = "localhost";
  $username = "root";
  $password = "";
  $dbname = "test";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  }
  
  $db_selected = mysqli_select_db($conn, $dbname);
  
  $userSignUp = ""; // If I substitute "" with characters at this time the table is well updated
  $passwordSignUp = ""; // Same as before
  
  if(isset($_POST['userSign'])){
      $userSignUp = $_POST['userSign'];
  }
  if (isset($_POST['passwordSign'])) {
      $passwordSignUp = $_POST['passwordSign'];
  }
  
  $sql = "INSERT INTO test.person (FirstName, Password) VALUES ('$userSignUp', '$passwordSignUp')";
  
  if ($conn-&gt;query($sql) === TRUE) {
      echo "New record created successfully";
  } else {
      echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
  }
  $conn-&gt;close();
  </code></pre>