Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem z linkami
Lathiel
post
Post #1





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 10.06.2012

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


Witam, mam problem z odnośnikami, które po prostu nie działają(mimo że podaje komendę odnośnika to traktuje mi to jako normalny tekst). Tekst wczytuje funkcją include z pliku w podfolderze - jak mogę rozwiązać ten problem?

Z góry dziękuje

Pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Lathiel
post
Post #2





Grupa: Zarejestrowani
Postów: 26
Pomógł: 0
Dołączył: 10.06.2012

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


To jest mój głowny index

  1. <?php
  2.  
  3. include('akcje/funkcje.php');
  4.  
  5. $TRESC = empty($_GET['leksykon']) ? 'index2' : $_GET['leksykon'];
  6.  
  7. switch($TRESC){
  8.  
  9. case 'index' ;
  10.  
  11.  
  12. break;
  13.  
  14. case 'rejestruj' ;
  15.  
  16.  
  17. if(isset($_POST['submitRejestruj'])){
  18. if($new_id = createUser($_POST['user'])){
  19. $_SESSION['user']['id'] = $new_id;
  20.  
  21.  
  22. }
  23.  
  24. }
  25. //header("Location: index.php");
  26.  
  27. break;
  28. case 'loguj' ;
  29.  
  30.  
  31. break;
  32.  
  33. }
  34.  
  35. include('header.php');
  36. include('menu.php');
  37. include('content2.php');
  38. include('footer.php');
  39.  
  40.  
  41.  
  42.  
  43. ?>



tutaj mój content do którego wczytuje treść

  1. <link href="style.css" rel="stylesheet" type="text/css" />
  2. <div id="tekst">
  3. <div id="tekst_gora"></div>
  4. <div id="tekst_tlo"><div class="menu_leksykon">
  5.  
  6. <a href="index2.php?leksykon=bron"><div class="bron"></div></a>
  7. <a href="index2.php?tresc=zbroja"><div class="pancerz"></div></a>
  8. <a href="index2.php?tresc=planety"><div class="miejsca"></div></a>
  9. <a href="index2.php?tresc=rasy"><div class="frakcje"></div></a>
  10.  
  11.  
  12. </div><div class="tresc_leksykon"><?php
  13.  
  14.  
  15.  
  16.  
  17.  
  18. include('leksykon/' . $TRESC . '.php');
  19.  
  20.  
  21.  
  22. ?></div>
  23.  
  24. <div id="tekst_dol"></div>
  25. </div>
  26.  
  27.  
  28.  
  29. </div>


i po naciśnięciu

  1. <a href="index2.php?leksykon=bron"><div class="bron"></div></a>


wczytuje mi ładnie do diva treść i w tej treści chcę zrobić odnośniki jeszcze niżej tyle że w ogóle traktuje mi całość jakby <a href=> w ogóle nie istniał
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: 23.08.2025 - 12:53