title: Multiplying $_POST
body: <p>I am trying to make a simple program where the user can multiply their inputs. But it always return a 0.</p>
  
  <p>I already did:</p>
  
  <pre><code>$price = (int)$_POST['txtPrice'];
  
  $quan = (int)$_POST['quantity'];
  
  
  $ans = $quan * $price;
  echo "$ans";
  </code></pre>
  
  <p>But returns 0 always.
  This is the page where all the textboxes came from:</p>
  
  <pre><code>echo "&lt;tr&gt;";
  echo "&lt;td&gt;&lt;input type='text' name='quantity' placeholder='How Many?'&gt;&lt;/td&gt;";
  echo "&lt;td&gt;&lt;input type='text' name='txtName' value='$name'&gt;&lt;/td&gt;";
  echo "&lt;td&gt;&lt;input type='text' name='txtPrice' value='$price'&gt;&lt;/td&gt;";
  </code></pre>