title: How to use button instead of anchor link in codeigniter
body: <p>I have the following code before when I'm not using codeigniter:</p>
  
  <pre><code>&lt;input type="button" value="Clear Cart" onclick="clear_cart()"&gt;
  </code></pre>
  
  <p>Now because I am using codeigniter I use this code to with the same functionality as above:</p>
  
  <pre><code>&lt;?php echo anchor('bookings/remove/all', 'Clear Cart', array('onclick' =&gt; "return confirm('Are you sure want to clear all bookings?')")); ?&gt;
  </code></pre>
  
  <p>The first code will create a button. But the second code will create only link.</p>
  
  <p>I'm new to codeigniter so please help me.</p>
  
  <p>Thanks</p>