WHY THIS not opening up?? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/XHTML1/DTD/XHTML1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Lovely Toys</title> <meta http-equiv="content-type" content="text/html; charset=iso-8859-1" /> <style type="toy/css"> p { padding:8px } #logo { height:75px; font-size:24px; margin-bottom:15px } #left, #right { clear:both } #left { width:15%;float:left } #right { width:82%;float:right } #logo, #left, #right { background:#eee; border:1px solid #aaa } #left ul, li { margin:8px;list-style-type:none } body { font: normal 12px verdana, tahoma, sans-serif } </style> </head> <body> <div id="logo"> <p>BABYTOYS.COM</p> </div> <div id="left"> <ul> <li><a href="./index.php">Home</a></li> <li><a href="./woodentoys.php">Wooden Toys</a></li> <li><a href="./handmadetoys.php">Hand Made Toys</a></li> <li><a href="./toddlertoys.php">Toddler Toys</a></li> <li><a href="./kidstoys.php">Kids Toys</a></li> <li><a href="./softtoys.php">Soft Toys</a></li> <li><a href="./indoor.php">Indoor Toys</a></li> <li><a href="./outdoor.php">Outdoor Toys</a></li> </ul> </div> <div id="right"> <!-- break for content --> footer.php <!-- end of content --> </div> </body> </html> index.php <?php include 'main.php' ?> <p>Homepage - Welcome to our quality store for amazingly beautiful safe toys for the kids of all age type at prices you won't find in any store..</p> <?php include 'footer.php' ?> pageone.php <?php include 'main.php' ?> <p>pageone - Our store is well known for its quality and affordable prices..</p> <?php include 'footer.php' ?> pagetwo.php <?php include 'main.php' ?> <p>pagetwo -Cheap toys can be toxic and can harm your children health. Buy quality and buy safe toys..</p> <?php include 'footer.php' ?> pagethree.php <?php include 'main.php' ?> <p>pagethree -We have wide variety of kids toys to suit your various needs..</p> <?php include 'footer.php' ?>
If I need to create separate include file for the footer, what should I write at top and at the bottom of footer page? (coding help)
Also, just throwing this out there... <style type="toy/css"> Code (markup): If that's legit, I've never seen it before. Should be text/css. Also, for your footer file, assuming it's footer.php, could look something like this: <?php // Footer ?> <div id="footer"> <p>© <?php echo $sitename; ?> , etc. etc. whatever in the footer</p> </div> </body> </html> <?php // Other PHP code if you need it, etc. ?> Code (markup):
To the one poster, include isnt a function, its an internal php call.. include 'test'; is perfectly a legal statement. just make sure you file names are correct and try moving stuff into folders if you can?