Can anyone tell me if it is possible to run a piece of PHP code within Javascript?
For example:
<script>
function test()
{
print("<?php echo"$var"; ?>");
}
</script>
Try XAJAX http://www.xajaxproject.org/