title: Why is this HTML form producing only 8 parameters instead of 9?
body: <p>I want to send a number of parameters by the form to a php file to insert to the database,</p>
  
  <pre><code>&lt;html&gt;
  &lt;head&gt;
      &lt;title&gt;Self&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php
  
      function selfcheck($DB, $TechID, $ClientID, $SiteID, $Type, $LogTime){
          $dbConnection = mysql_connect($DB['server'], $DB['loginName'], $DB['password']);
          if(!$dbConnection){
              die('Error! ' . mysql_error());
              }
          mysql_select_db($DB['database'], $dbConnection);
          $result = mysql_query("SELECT COUNT(*) FROM Log") or die('Error! ' . mysql_error());
          while($row = mysql_fetch_array($result)){
              $count = $row['COUNT(*)'];
              $count = $count+1;
              print $count.", ".$TechID.", ".$ClientID.", ".$SiteID.", ".$LogTime.", ".$Type."&lt;br&gt;";
              $query = "INSERT INTO Log (LogID, TechID, ClientID, SiteID, LogTime, Type)
                          VALUES (".$count.", ".$TechID.", ".$ClientID.", ".$SiteID.", ".$LogTime.", ".$Type.")";
              mysql_query($query);
          }
      }
  
      $LogTime = date('Y/m/d H:i', mktime($_GET['Hour'], $_GET['Minute'], 0, $_GET['Month'], $_GET['Day'], $_GET['Year']));
      selfcheck($DB, $_GET['TechID'], $_GET['ClientID'], $_GET['SiteID'], $_GET['Type'], $LogTime);
  ?&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p></p>
  
  <p>As you can see, there are nine Get values, however, when I try to execute the codes, the server replys</p>
  
  <pre><code>"Undefined index: Minute in C:\wamp\www\NFC\self.php on line 29", and show in the URL, minute parameter has not been sent. Why does this happen? And how can I solve this problem?
  </code></pre>
  
  <p>Here is the code to send the request.</p>
  
  <pre><code>print "&lt;form method='get' name='check' action='self.php'&gt;";
      $result = mysql_query("SELECT * FROM Tech") or die('Error! '.mysql_error());
      print "Name&lt;select id='tech' name='TechID'&gt;";
      while($row = mysql_fetch_array($result)){
          print "&lt;option value=".$row['TechID']."&gt;".$row['TechName']."&lt;/option&gt;";
      }
      print "&lt;/select&gt;";
      $result = mysql_query("SELECT * FROM Client") or die('Error! '.mysql_error());
      print "Name&lt;select id='client' name='ClientID'&gt;";
      while($row = mysql_fetch_array($result)){
          print "&lt;option value=".$row['ClientID']."&gt;".$row['ClientName']."&lt;/option&gt;";
      }
      print "&lt;/select&gt;";
      $result = mysql_query("SELECT * FROM Site") or die('Error! '.mysql_error());
      print "Name&lt;select id='site'name='SiteID'&gt;";
      while($row = mysql_fetch_array($result)){
          print "&lt;option value=".$row['SiteID']."&gt;".$row['SiteName']."&lt;/option&gt;";
      }
      print "&lt;/select&gt;";
      print "Type&lt;select id='type' name='Type'&gt;";
      print "&lt;option value='Checkin'&gt;Check In&lt;/option&gt;";
      print "&lt;option value='Checkout'&gt;Check Out&lt;/option&gt;";
      print "&lt;/select&gt;&lt;br&gt;";
      print "Year&lt;input type='text' id='year' size='4' name='Year'/&gt;";
      print "Month&lt;input type='text' id='month' size='2' name='Month'/&gt;";
      print "Day&lt;input type='text' id='day' size'2' name='Day'/&gt;";
      print "Hour in 24&lt;input type='text' id='hour' size='2' name='Hour'/&gt;";
      print "Minute&lt;input type='text' id='minute' size'2'name='Minute'/&gt;";
      print "&lt;input type='submit' value='Manual check' onclick='self.php'/&gt;";
      print "&lt;/form&gt;";
  </code></pre>
  
  <p>it is in a PHP file as for some choices, I want to get the options from the database instead of hard code them. I have tried to send the parameters through a javascript file, but the situation cannot be solved.</p>