title: add to cart button adds value on database when clicked
body: <p>i want my "add to cart" button to put value on my database table named "items" on column named "status"</p>
  
  <p>i tried the "on click" thing but it doesn't work</p>
  
  <pre><code> &lt;a ref="#" class="button button-danger button-circle button-sim"&gt;
       &lt;i class="fa fa-cart-plus" on click=""&gt;&lt;/i&gt;
   &lt;/a&gt;
  </code></pre>
  
  <p>And when clicked I want it to show an alert that it is now in their cart.</p>
  
  <p>I know the first line of code has wrong spelling, cant post the question without changing it</p>