i have a problem when trying to include php with javascript
i have an:
if(document.getElementById(acheckbox).checked==true){
<?php $result=$result."bar-";?>
}
else{
<?php $result=$result."none";?>
}
but both are executed... so $result is>>>bar-none how can i solve this problem??? please help!