title: Run php function after user confirm
body: <p>I have some code like this :</p>
  
  <pre><code> &lt;?php foreach ($vips as $vip) { ?&gt;
      &lt;tr&gt;
          &lt;td&gt;&lt;?php echo $vip['id'] ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;?php echo $vip['vip_name'] ?&gt;&lt;/td&gt;
          &lt;td&gt;&lt;a href="&lt;?php echo base_url() ?&gt;admin/editVip/&lt;?php echo $vip['id'] ?&gt;"&gt;Edit&lt;/a&gt; / &lt;a
                  href="&lt;?php echo base_url() ?&gt;admin/deleteVip/&lt;?php echo $vip['id'] ?&gt;"&gt;Delete&lt;/a&gt;&lt;/td&gt;
      &lt;/tr&gt;
  &lt;?php } ?&gt;
  </code></pre>
  
  <p>I have two links called <code>Edit</code> and <code>Delete</code>. I want when user click on <code>Delete</code> link a confirm window appears with javascript and if user click on <code>ok</code> on that confirm window, then execute <code>deleteVip</code> method.
  How can I have something like this ?
  (I'm using <code>codeigniter</code> framework)</p>
  
  <p>Thanks</p>