title: Retriving a value from a textbox
body: <p>I have textbox , i want to retrive the value from the textbox and store it in a php variable . Its not inside a form tag. I am creating a e-commerce website for my class assignment . I retrive each product and display it in the website. I have a quantity text box and a "add to cart button". The value in the cart need to be added to the database</p>
  
  <pre><code>while($row_pro =mysqli_fetch_array($row_mysql) )
  {
      $product_id=$row_pro['productID'];
      $product_name =$row_pro['productName'];
      $product_desc= $row_pro['productDesc'];
      $product_price= $row_pro['price'];
      $product_vendor=$row_pro['Vendor'];
      $product_images=$row_pro['image'];
      echo "&lt;a href='detail.php?productID=$product_id'&gt;&lt;h3&gt;$product_name&lt;/h3&gt;&lt;/a&gt;
                  &lt;a href='detail.php?productID=$product_id'&gt;&lt;img src='images/$product_images' width='180px' height='280px'/&gt;&lt;/a&gt;
                  &lt;p&gt;$product_desc&lt;/p&gt;
                  &lt;p&gt;$product_vendor&lt;/p&gt;
                  &lt;h4&gt;$product_price&lt;/h4&gt;
                  &lt;input type='text' name='quantity'&gt;
                  &lt;a href='product_display.php?addtocart=$product_id'&gt;&lt;button style=\"float:right\"&gt;Add to cart&lt;/button&gt;&lt;/a&gt;
          ";
  }
  </code></pre>