title: How to create confirm yes/no in php?
body: <p>I want to create a confirm yes/no box in php
  my code like this:</p>
  
  <pre><code>&lt;?php
  if(isset($_REQUEST['id']))
  {
  ?&gt;
  
  &lt;script&gt;
   var cf=confirm("do you want to delete Y/N");
   if(cf)
    { i want to call code edit of php
  
    }
  &lt;/script&gt;
  &lt;?php
  }
  ?&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;form name="frm" method="post" action="edit.php"&gt;
  &lt;a href="edit.php?id=1"&gt;Edit &lt;/a&gt; &lt;br&gt;
  &lt;a href="edit.php?id=2"&gt;Edit &lt;/a&gt; &lt;br&gt;
  &lt;a href="edit.php?id=3"&gt;Edit &lt;/a&gt; &lt;br&gt;
  
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I Want to when press Yes i call code edit in PHP
  But it do not work.
  Can you help me ?
  Thanks you</p>