title: How to execute PHP code within JavaScript
body: <pre><code>&lt;button type=&quot;button&quot; id=&quot;okButton&quot; onclick=&quot;funk()&quot; value=&quot;okButton&quot;&gt;Order now &lt;/button&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
      function funk(){
          alert(&quot;asdasd&quot;);
          &lt;?php echo &quot;asdasda&quot;;?&gt;
      }
  &lt;/script&gt;
  </code></pre>
  <p>When the button is pressed I want to execute PHP code (at this point to echo asadasda)</p>