title: using javascript in PHP
body: <p>i have this php and js code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function StartScript(script)
  {
    &lt;?php require("StartScript.php");  ?&gt;
  }
  &lt;/script&gt;
  
  &lt;a href="#" onclick="StartScript(scriptname);"&gt;Start&lt;/a&gt;
  </code></pre>
  
  <p>How can i get the "script" from the javascript function onto the end of the php file?</p>
  
  <p>for example rather than:</p>
  
  <pre><code>&lt;?php require("StartScript.php");  ?&gt;
  </code></pre>
  
  <p>to have:</p>
  
  <pre><code>&lt;?php require("StartScript.php?script=scriptname");  ?&gt;
  </code></pre>