cliftonbazaar Posted April 12, 2009 Share Posted April 12, 2009 I have the following code <HTML> <HEAD> <TITLE>Privacy Policy</TITLE> <META NAME="keywords" CONTENT="kingdoms"> <META NAME="description" CONTENT="Kingdoms."> <META HTTP-EQUIV="Content-Language" CONTENT="en-us"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <META NAME="GENERATOR" CONTENT="Microsoft FrontPage 6.0"> <META NAME="ProgId" CONTENT="FrontPage.Editor.Document"> <LINK REL="stylesheet" TYPE="text/css" HREF="trader/style.css"> <meta name="Microsoft Theme" content="boldstri 0110, default"> <meta name="Microsoft Border" content="tlb, default"> </HEAD> <BODY> <?PHP include("C:/website/bazaar/default/privacy.php"); ?> </BODY> </HTML> Note that this is all the code from the page - my problem is that the browser displays the correct file (privacy.php) but nothing from the <HEAD> section. PS I have learnt that the include file shouldn't be C:/ as it is bad programming, I just haven't got around to changing it yet. Quote Link to comment Share on other sites More sharing options...
ratcateme Posted April 12, 2009 Share Posted April 12, 2009 are you sure have you check the source of the html page that your browser is getting? not the source that is on your web server but what is really being sent to the browser Scott. Quote Link to comment Share on other sites More sharing options...
cliftonbazaar Posted April 12, 2009 Author Share Posted April 12, 2009 The complete code from the page source is <HTML> <HEAD> <TITLE>Privacy Policy</TITLE> <META NAME="keywords" CONTENT="kingdoms"> <META NAME="description" CONTENT="Kingdoms."> <META HTTP-EQUIV="Content-Language" CONTENT="en-us"> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252"> <META NAME="GENERATOR" CONTENT="Microsoft FrontPage 6.0"> <META NAME="ProgId" CONTENT="FrontPage.Editor.Document"> <LINK REL="stylesheet" TYPE="text/css" HREF="trader/style.css"> <meta name="Microsoft Theme" content="boldstri 0110, default"> <meta name="Microsoft Border" content="tlb, default"> </HEAD> <BODY> <P ALIGN="left">Any information entered into this site will only be used by me and not sold, traded, given away to any other party. Any advertising will either be done on the website or added to my newsletter</P> <P ALIGN="left">Cookies may have been added for the benefit of the user; this information will not been used by any person, or organization, other than myself.<BR> Please note that cookies may be used on other sites that I, James Clifton, control - for a full list of these site please visit my personal blog at <A HREF="http://www.jamesclifton.com">www.jamesclifton.com</A></P> <P ALIGN="left">Any changes to the privacy policy will be made at my web site as well as posted here.</BODY> </HTML> So all the source code is correct but the browser will not display the theme or the border. Note that I have tried this in IE7 and FF3 (my default browser). Quote Link to comment Share on other sites More sharing options...
herghost Posted April 13, 2009 Share Posted April 13, 2009 is your link to your css in the right place? iff you tak ethe include out does it display? Quote Link to comment Share on other sites More sharing options...
cliftonbazaar Posted April 13, 2009 Author Share Posted April 13, 2009 Now that I take all the PHP code out of the page it doesn't display what is in the <HEAD>. This is working on some of my websites but not others. Quote Link to comment Share on other sites More sharing options...
cliftonbazaar Posted April 13, 2009 Author Share Posted April 13, 2009 Sorry about double posting - it won't let me edit the post above The page doesn't display anything in the <HEAD> area but it does show up in the page source from the browser. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.