I am working in a website.
I have the main index php page and then depending of the querystring the content of various pages is included in the main content div.

In the index file i have included the main css and script files but i have some specific files that will only be included in certain pages.

Currently i am treating every module like a normal page (with head tag where i include the css and scripts for that module.)

Is this correct or there is the a best way?
If i look in view source in browser my website has 2 or more head tags (the main one from and the specific pages header.)

Itīs possible to inject the links into the head of then main php file?

PS: Itīs stupid that i canīt write index dot php because the forum considers it a link