Forum Moderators: open
I don't want to use an include, as that would involve rearchitecting the site, aka:
<?php
code to set variable
?>
<script>
alert('<? echo phpvariable;?>');
</script>
Can you include files like so?
<script src="/js/file.php"></script>
It seems to work, but I don't know whether it wil be compatable.
Jonathan