Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]odwołania do linków
OsloOrgi
post 15.08.2011, 12:37:00
Post #1





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 15.08.2011

Ostrzeżenie: (0%)
-----


Witam mam pytanie bo coś mi nie wychodzi tak jak bym chciał. czy ktoś może mi pomóc. potrzebuję zrobić linkowanie do poszczególnych plików tak by środek strony był zastępowany innym plikiem ale wyświetla mi go pod centralem.

index =>
  1. <table width="1000" border="0" align="center" cellpadding="0" cellspacing="0" class="center_glowny">
  2. <tr>
  3. <td colspan="3"><?php include "include/naglowek.php"; ?></td>
  4. </tr>
  5. <tr>
  6. <td valign="top"><?php include "center.php"; ?></td>
  7. </tr>
  8. <td width="65%" valign="top">
  9. <?php
  10. $go = $_GET['go'];
  11. if(!empty($go)) {
  12. if(is_file("page/$go.html")) include "page/$go.html";
  13. }
  14. else include "page/start.html";
  15. ?>
  16. <?php
  17. include "include/ilnk.php";
  18. ?>
  19. </td>
  20. <tr>
  21. <td colspan="3">
  22. <?php
  23. include "include/stopka.php";
  24. ?>
  25. </td>
  26. </tr>
  27. </table>

ilnk.php =>
  1.  
  2. <?php
  3. $go = $_GET['go'];
  4.  
  5. switch($go) {
  6.  
  7. case "index": include "index.php"; break;
  8. case "ofirmie": include "include/omnie.php"; break;
  9. case "6": include "include/kontakt.php"; break;
  10. case "2": include "include/strona_3.php"; break;
  11. case "3": include "include/strona_4.php"; break;
  12. case "4": include "include/strona_5.php"; break;
  13. case "5": include "include/strona_6.php"; break;
  14.  
  15. }
  16.  
  17. ?>


center.php
  1. <?php include "center_index_up.php"; ?>
  2. <?php include "center_index_down.php"; ?>


i teraz jak zrobić by w miejscu wyświetlania pliku center.php który jest to menu wyświetlały mi się zawartości linków questionmark.gif


przepraszam za bardzo zapewne błahy problem... i proszę o odpowiedź.
Go to the top of the page
+Quote Post

Posty w temacie
- OsloOrgi   [PHP]odwołania do linków   15.08.2011, 12:37:00


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

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 18:33