title: passing a JavaScript variable to PHP method without using Ajax
body: <p>I have try to pass a java script variable to PHP method from this way. But I have done wrong way. How do implement it in a correct way.</p>
  
  <pre><code>&lt;script&gt;
         function showMe(id){
             var name = &lt;?php findDriverName(id,$drivers); ?&gt;             
         }
  &lt;/script&gt;
  </code></pre>
  
  <p>The variable <strong>id</strong> is the Java Script Variable I need to pass this to PHP method <strong>findDriverName</strong></p>