title: Confirmation box in PHP
body: <p>I'm trying to popup a confirmation box after the submit button is pressed in <code>if</code> clause. If you click "OK" the PHP script proceeds, if you click "Cancel", it stops.</p>
  
  <pre><code>if(isset($_POST['submit'])) {
     $get_randeman = $_POST['randeman_realize'];
     if($get_randeman &lt; $randeman_min) {
        echo '&lt;script&gt;confirm("Are you sure?");
            if(confirm("Are you sure?") == false) {
               return;
            } else {
            continue;
           }
     &lt;/script&gt;';
  } else {
  
  //proceed
  </code></pre>