title: PHP : How to run php code after javascript confirm box?
body: <p>I want execute below code in php;</p>
  
  <pre><code>var answer =window.confirm("Did You want to overwrite the file..."); 
  </code></pre>
  
  <p>Based on that "OK" or "CANCEL" ;</p>
  
  <p>If that ok means I want execute below php code without using AJAX </p>
  
  <pre><code>if($uploadedby==$name)
  {
      move_uploaded_file($file_loc,$folder.$file);
      $sql="update  pubfiles SET filename='$file',owner_name='$name',upload_time='$file_time',size='$file_size' WHERE content='$unique';";
  
      $qry=mysql_query($sql,$conn); 
      if($qry&gt;0)$check="yes";
  }
  </code></pre>