jimfog Posted December 20, 2012 Share Posted December 20, 2012 I have put the head section of a page, including the doctype in a file which is included in a php pagewith the known "include" contruct. IN this file I do not put the html tag: <!DOCTYPE html> <head> <title>test</title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link rel="stylesheet" href="css/admingeneral.css"/> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js" ></script> <script type="text/javascript" src="js/js-code.js"></script> </head> The funny thing is that when the browser loads the page the html element appears in the page(by looking at the source). How that can be, since I have omitted that tag as you see above? Link to comment Share on other sites More sharing options...
Ingolme Posted December 20, 2012 Share Posted December 20, 2012 Can you show the source code of the page it's being included into? PHP's include() directive is just like copying and pasting the code into the other document. Link to comment Share on other sites More sharing options...
thescientist Posted December 20, 2012 Share Posted December 20, 2012 (edited) what are the contents just the included file, and what is the code it is being included into? Edited December 20, 2012 by thescientist Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now