javascript and PHP problem
<p>i have a problem when trying to include php with javascript</p>

<p>i have an:</p>

<pre><code>if(document.getElementById(acheckbox).checked==true){
&lt;?php $result=$result."bar-";?&gt;
}
else{
&lt;?php $result=$result."none";?&gt;
}
</code></pre>

<p>but both are executed...
so $result is>>>bar-none
how can i solve this problem???
please help!</p>
