How come some php files have javascript embedded in them?

How come some php files have java script embedded in them?

Probably because it really isn’t imbedded in the php file, but the php file being treated like an html page. So that php can be executed properly.

Unless the PHP file is generating the JavaScript then it is because the person doesn’t know what they are doing and is jumbling things together that should be kept separate.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.