Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]niedzialajacy skrypt menu
--emia--
post
Post #1





Goście







witam,mam troche głupi problem, nie uruchamia mi się prawidłowo skrypt menu, ze strony indexu,który wygląda tak:
  1. <?php
  2. $go = $_GET['go'];
  3. if(!empty($go)) {
  4. if(is_file('$go.php')) include ($go.php');
  5. else echo "<br />Nie ma takiej strony";
  6. }
  7. else include ('1.php);
  8. ?>

a w menu jest taki:
  1. <?php
  2. <a href="index.php">strona główna</a><br />
  3. <a href="index.php?go=2">Galeria</a><br />
  4. <a href="index.php?go=2">o nas</a><br />
  5. <a href="index.php?go=2">kontakt</a>
  6. ?>


przy wyświetlaniu z index.php pojawia się 1.php ale na linki pozostale nie ma reakcji(z wyj. strony glównej) .gdzie jest błąd?(IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 24.08.2025 - 13:00