title: How to send the product data (from table) when "Add to Cart" is clicked to My cart page?
body: <p>I'm working on a small 'Shopping Site' college project...I had created everything but stucked at one Problem.</p>
  
  <p>There is a content part aligned center in my page where i have a table for Product name,Price and Add to cart in consecutive rows...</p>
  
  <pre><code>&lt;div id="Content"&gt;
   &lt;table id="ContentTable"&gt;
        &lt;tr&gt; 
          &lt;td id="iphone5"&gt;&lt;img class="thumbnail" src="mobile_img/iphone-5.jpg"&gt;&lt;/td&gt;
          &lt;td&gt;&lt;img class="thumbnail" src="mobile_img/Lumia-920.jpg"&gt;  &lt;/td&gt;
          &lt;td&gt;&lt;img class="thumbnail" src="mobile_img/blackberry-curve-9300.jpg"&gt;  &lt;/td&gt;
          &lt;td&gt;&lt;img class="thumbnail" src="mobile_img/header.jpg"&gt;  &lt;/td&gt;
        &lt;/tr&gt;
  
        &lt;tr&gt;
          &lt;td&gt;$ 5767435&lt;/td&gt;
          &lt;td&gt; $ 2343456&lt;/td&gt;
          &lt;td&gt; $ 123123&lt;/td&gt;
          &lt;td&gt;$ 345345&lt;/td&gt;
       &lt;/tr&gt;
  
        &lt;tr class="productdetails"&gt; 
          &lt;td&gt;&lt;a href="My Cart.jsp"&gt;Add to my cart&lt;/a&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href="My Cart.jsp"&gt;Add to my cart&lt;/td&gt;&lt;/a&gt;
          &lt;td&gt;&lt;a href=""&gt;Add to my cart&lt;/td&gt;&lt;/a&gt;
          &lt;td&gt;&lt;a href=""&gt;Add to my cart&lt;/td&gt;&lt;/a&gt;
        &lt;/tr&gt;
  
      &lt;/table&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Problem is that, how could i attach product details to 'Add to cart' link below them and send them to other page, which is to be stored in database when 'Add to Cart' below them is clicked...</p>