title: Send Form Data to mysqli dtbs using php fails (xampp environment)
body: <p>Here is a my html form code: The problem is that i can't figure out how to succesfuly submit the form to mysql dtbs using xampp. (Data aren't sent to dtbs).</p>
  
  <pre><code>    &lt;!DOCTYPE html&gt;
      &lt;html&gt;
      &lt;head&gt;
      &lt;meta charset="utf-8"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
      &lt;title&gt;My Form&lt;/title&gt;
      &lt;meta name="description" content="An interactive form"&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
  
      &lt;form action="test.php" method="post" id="Personalinfo"&gt;
  
      &lt;label for="fname"&gt;Όνομα:&lt;/label&gt;
      &lt;input type="text" id="fname" name="firstname" placeholder="Όνομα 
      Πελάτη.."&gt;
  
      &lt;input type="submit" value="Submit"&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>
  
  <p>and now my php code:</p>
  
  <pre><code>    &lt;?php
      $servername = "localhost";
      $username = "username";
      $password = "";
      $dbname = "mydb";
  
      // Create connection
      $conn = new mysqli($servername, $username, $password, $dbname);
     // Check connection
     if ($conn-&gt;connect_error) {
     die("Connection failed: " . $conn-&gt;connect_error);
     } 
  
     $sql = "INSERT INTO Guests (firstname)
     VALUES ('?')";
  
     if ($conn-&gt;query($sql) === TRUE) {
     echo "New record created successfully";
     } else {
     echo "Error: " . $sql . "&lt;br&gt;" . $conn-&gt;error;
     }
  
     $conn-&gt;close();
     ?&gt;
  </code></pre>
  
  <p>Data is not sent in the mysql dtbs! i've been trying for 2 days solving this but nothing... please help! </p>
  
  <p>Kind regards, Thanos</p>