Jump to content


Photo

using the require function


  • This topic is locked This topic is locked
No replies to this topic

#1 dsartain

dsartain
  • Members
  • PipPipPip
  • Advanced Member
  • 68 posts

Posted 03 March 2006 - 09:35 AM

I am making a very, very basic page just to get things started and am trying to use the require() function to call the title page...just to get the syntax down....my main page is index.php as it calls heading.html (tried heading.inc as well) It will display the styles that are called in heading.html correctly...but not the styles in index.php...code as follows:

[!--sizeo:4--][span style=\"font-size:14pt;line-height:100%\"][!--/sizeo--]index.php:[!--sizec--][/span][!--/sizec--]

<html><head>
<title>Don's Website</title>
</head>

<?php
require('PHP/includes/heading.html');
?>
<body class="body">
<table class="music1">
<tr>.......etc
..........
</tr>
</table>
</body>
</html>

[!--sizeo:4--][span style=\"font-size:14pt;line-height:100%\"][!--/sizeo--]heading.html:[!--sizec--][/span][!--/sizec--]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR...nsitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link href="../../Style Sheets/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

</head>
<body>
<div align="center" class="title"><img src="../../images/name2.gif" /></div>
<p class="links" ><a href="index.html">Home</a> | <a href="music/index.html"> Music </a> | <a href="contact.aspx"> Contact </a></p>
</body>
</html>

I also tried adding <link href="../Style Sheets/style.css" rel="stylesheet" type="text/css" /> to the index.php page but it still didn't work....

you can look at the very messed up version of my site at www.dsartain.com/index.php

Any help would be much appreciated. Thanks.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users