Hi Guys,
Basically I'm working on a website in my local host which is WAMP...the directory for the site is localhost/shirts4mike/index.php....This takes you too the homepage which works okay.
The problem is when you click on one of the links on the homepage..contacts...this should take you too the contract.php page...however it just doesn't take you anywhere and takes you too localhost/shirts4mike/#
What's also strange is...when you go too localhost/shirts4mike/contact.php it takes you too the correct page!
index.php code:
PHP Code:
<?php include('inc/header.php'); ?>
<div class="section banner">
<div class="wrapper">
<img class="hero" src="img/mike-the-frog.png" alt="Mike the Frog says:">
<div class="button">
<a href="#">
<h2>Hey, I’m Mike!</h2>
<p>Check Out My Shirts</p>
</a>
</div>
</div>
</div>
<div class="section shirts latest">
<div class="wrapper">
<h2>Mike’s Latest Shirts</h2>
<ul class="products">
<li><a href="#">
<img src="img/shirts/shirt-108.jpg">
<p>View Details</p>
</a>
</li><li>
<a href="#">
<img src="img/shirts/shirt-107.jpg">
<p>View Details</p>
</a>
</li><li>
<a href="#">
<img src="img/shirts/shirt-106.jpg">
<p>View Details</p>
</a>
</li><li>
<a href="#">
<img src="img/shirts/shirt-105.jpg">
<p>View Details</p>
</a>
</li>
</ul>
</div>
</div>
</div>
<div class="footer">
<div class="wrapper">
<ul>
<li><a href="http://twitter.com/treehouse">Twitter</a></li>
<li><a href="https://www.facebook.com/TeamTreehouse">Facebook</a></li>
</ul>
<p>©<?php echo date('Y'); ?> Shirts 4 Mike</p>
</div>
</div>
</body>
</html>
inc page which is header.php:
PHP Code:
<html>
<head>
<title><?php echo"Shirts 4 Mike"; ?></title>
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Oswald:400,700" type="text/css">
<link rel="shortcut icon" href="favicon.ico">
</head>
<body>
<div class="header">
<div class="wrapper">
<h1 class="branding-title"><a href="./">Shirts 4 Mike</a></h1>
<ul class="nav">
<li class="shirts"><a href="#">Shirts</a></li>
<li class="contact"><a href="contact.php">Contact</a></li>
<li class="cart"><a href="#">Shopping Cart</a></li>
</ul>
</div>
</div>
<div id="content">
contact.php code:
PHP Code:
<?php include('inc/header.php'); ?>
<div class="section page">
<h1>Contact</h1>
</div>
Any ideas, its only something small but its driving me mad!