title: input type="number" is returning string
body: <p>when i enter value in input field and submit, gettype() shows that the type of obtained value from input field is a string.But i entered an integer.why? </p>
  
  <pre><code>&lt;form method="post" action="ff.php"&gt;
                &lt;input type="number" name="tableinteger" /&gt;&lt;br /&gt;
                &lt;input type="submit" value="submit" /&gt;
                &lt;/form&gt;
                 &lt;?php
                 if(isset($_POST['tableinteger'])){
                 $num=$_POST['tableinteger'];
                 $dt=gettype($num);
                 echo $dt;
                 if($num&lt;2 || $num&gt;20)
                 {
                     print "Enter the number that is between 2 and 20.";
                   }
                 else if($dt=="string"){
                  echo "Kindly Enter an integer value.";
                 }
                 else {
                 for($i=1; $i&lt;11; $i++)
                 {
                     echo $num*$i ."&lt;br /&gt;";
                 }
                 }
               }
            ?&gt;
  </code></pre>