title: PHP Inserting empty record in MySQL DB
body: <p>I'm trying to insert records in a MySQL DB, but I'm getting no values from the POST variable. </p>
  
  <p>I can see a new record is being entered with a record ID, but 0 in the next and only cell in the table.
  The cell type is a <strong>Double</strong> in form.html.</p>
  
  <p><em>I've hidden the submit button for design purposes. This is developed for a mobile experience.</em> </p>
  
  <p><strong>upload.php</strong></p>
  
  <pre><code>&lt;?php
  $con=mysqli_connect("localhost","user","password","DB");
  // Check connection
  if (mysqli_connect_errno()) {
    echo "Failed to connect to MySQL: " . mysqli_connect_error();
  }
  $cal = mysqli_real_escape_string($con, $_POST['cali']);
  $sql="INSERT INTO `calibration` (`Calibration`) VALUES ('$cal')";
  echo $sql;
  if (!mysqli_query($con,$sql)) {
    die('Error: ' . mysqli_error($con));
  }
  echo "Calibration Complete!";
  
  mysqli_close($con);
  ?&gt; 
  </code></pre>
  
  <p><strong>form.html</strong></p>
  
  <pre><code>&lt;form enctype="text/plain" action="upload.php" method="POST"&gt;
  &lt;input type="text" name="cali" value="Please calibration value" onclick='javascript: this.value = ""' &gt;
  &lt;input type="submit" style="margin-left: -1000px;"&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Thank you in advance!</p>