php in javascript file





If you just need to pass variables from PHP to the javascript, you can have a tag in the php/html file using the javascript to begin with. change it to < script src"blah.php"> and stick this code in blah.php. . I set them up as php files, which netbeans will display with the javascript, then reference the php in my html as