dimanche 25 octobre 2015

How to redirect a php file to a php file correctly

So I have this code in my Menu.php file:

<ul>
<li><a href="index.php">Home</a></li>
<li><a href="all.php">All</a></li>
<li><a href="ten.php">Ten</a></li>
<li><a href="odd.php">Odd</a></li>
</ul>

And I have this code in my all.php file:

<html>
<head>
<title>All of them</title>
</head>
<body>
<?php
include_once "Header.php";
include_once "Menu.php";
$bottles = 99;
  while ($bottles > 0) {
    echo "$bottles bottles of beer on the wall...<br/>";
    echo "$bottles bottles of beer...<br/>";
    echo "You take one down and pass it around...</br>";
    $bottles--;
echo "$bottles bottles of beer on the wall.<br/><br/>";
} 

echo "</p>There are no more bottles of beer.";
}
 include_once "Footer.php";
?>
</body>
</html>

For some reason, my index.php is not redirecting to all.php even tho everything is placed correctly and its redirecting to the right link which is placed in the right folder.

Can anyone help me?




Aucun commentaire:

Enregistrer un commentaire