I would like to know if it is possible in some way to embedd php in javascript. I tryed the code below but it didn't work. Would be thankful if someone knows if it's possible or if there is another way of doing it:
- Code: Select all
<script language="JavaScript" type="text/JavaScript">
<!--
function testJava()
{ //v2.0
<?php
echo "hello";
?>
return 0;
}
//-->
</script>


