title: Checking Whether a textbox is empty?
body: <p>Hey guys i'm trying to make a php script check whether or not the text boxes are empty, i am using the below code.</p>
  
  <pre><code>&lt;?php
  $dbname = $_POST['db_name'];
  $dbuser = $_POST['db_user'];
  $dbpass = $_POST['db_pass'];
  $username = $_POST['username'];
  $password = $_POST['password'];
  
  if($dbname == "" || $dbuser == "" || $dbpass == "" || $username == "" || $password == "")
  {
  Echo("Missing Information!");
  }else{
  Echo("Success!");
  }
  ?&gt;
  </code></pre>
  
  <p>Below is my form code:</p>
  
  <pre><code>    &lt;form method="post" style="padding-left: 50px" action="install_submit.php"&gt;
  &lt;h2&gt;Database connection settings&lt;/h2&gt;
  &lt;label for="db_name"&gt;Database name:&lt;/label&gt;
  &lt;input type="textbox" id="db_name" name="db_name" /&gt;&lt;br/&gt;
      &lt;label for="db_user"&gt;Database username:&lt;/label&gt;
      &lt;input type="textbox" id="db_user" name="db_user" /&gt;&lt;br/&gt;
  &lt;label for="db_pass"&gt;Database password:&lt;/label&gt;
  &lt;input type="password" id="db_pass" name="db_pass" /&gt;&lt;br/&gt;
  &lt;h2&gt;CPanel settings&lt;/h2&gt;
  &lt;label for="username"&gt;Username:&lt;/label&gt;
  &lt;input type="textbox" id="username" name="username" /&gt;&lt;br/&gt;
  &lt;label for="password"&gt;Password:&lt;/label&gt;
  &lt;input type="password" id="password" name="password" /&gt;&lt;br/&gt;
  
  
  &lt;input type="submit" name="submit_install" value="Install" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>With that it always returns "Missing Information!" even when all the text boxes are filled in.</p>
  
  <p>What am i doing wrong?</p>