calling php on js
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7165395/call-php-function-from-javascript">Call php function from javascript</a>  </p>
</blockquote>



<p>can anyone help me on how can I call the php function on JS function?</p>

<p>Here is the event:</p>

<p>I have 2 selection box (e.g projects and task)
when selecting on project selection box, the task selection box will be populated.
values populated on the task selection box is in my PHP DAO.</p>

<p>Here is my javascript but it doesn't work but my idea is like that</p>

<pre><code>function getProjTask()
{
    var taskList = &lt;?php $projTask-&gt;getProjectTask("ProjectName");  ?&gt;

    //values for task selection box has been populated here

}
</code></pre>
