title: Getting a value from a text box in php without using a form element in HTML
body: <p>I need to get a value from a text box, but I'm not using a form, therefore I can't use $_POST or $_GET. Is there any method to get that value from the text box? Below is the code that I'm using</p>
  
  <pre><code>&lt;input name="txtQty" type="text" id="txtQty" size="5" value="&lt;?php echo $qty; ?&gt;" onKeyUp="checkNumber(this);"&gt; //here I'm the displaying the quantity, then the user can change it, and I need to get that value to pass it throught this link: 
  
  &lt;input name="btnEdit" type="button" value="Edit" onClick="window.location.href='&lt;?php echo $_SERVER['PHP_SELF'] . "?action=update&amp;cid=$shoppingCartId&amp;qty=$qty //here I need that new value from the textbox"; ?&gt;';"
  </code></pre>
  
  <p>Thanks for your help</p>