title: Breaking a PHP code with Javascript confirm dialog?
body: <p>I have PHP scrip that goes like this:</p>
  
  <pre><code>if ($cost_frm &lt; $cost){
       echo "&lt;script type='text/javascript'&gt;
       var r = confirm('Input cost is lower than original. Sure?'));
       If (r==true){
              } else{
                              *** BREAK PHP SCRIPT ***
                             }
               &lt;/script&gt;";
   }
  </code></pre>
  
  <p>And I'd like to stop ejecuting the script (or doing anything else) if the user clicks Cancel. Any tip?</p>