title: Making a button unclickable after clicked once
body: <p>I have got a code segment that i need to modify so that the button can only be clicked once. </p>
  
  <p>I've tried various methods and not managed to succeed so far. I believe i need to use javascript,  but it's really not my strong point and i'm a bit lost.</p>
  
  <p>Any help would be gratefully received.</p>
  
  <p>Code snippet is:</p>
  
  <pre><code>$the_button = '&lt;input type="hidden" name="cart_quantity" value="1"/&gt;' . zen_draw_hidden_field('products_id', (int)$_GET['products_id']) . zen_image_submit('add_to_cart3.jpg', BUTTON_IN_CART_ALT) . '&lt;span id="button_cart" style="padding-left:6px;"&gt;&lt;/span&gt;';
  </code></pre>