Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Dynamiczne strony WWW, Tworzenie strony z pomocą INCLUDE
RoysoN
post
Post #1





Grupa: Zarejestrowani
Postów: 52
Pomógł: 0
Dołączył: 3.12.2009

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


Witam!

Mam pewien problem. Niedawno wpadłem na ambitny plan, nauczyć się PHP. Jednak ta nauka nie zawsze dobrze mi idzie:(
Mój problem to wczytywanie strony( oczywiscie tylko jej tresci) za pomoca INCLUDE:

  1. <html>
  2. <head>
  3. <title><?php include("config.txt") ?></title>
  4. <style>
  5. div.menu {
  6. background-color: #999;
  7. position:absolute;
  8. left:0px;
  9. top:300px;
  10. width:100px;
  11. }
  12.  
  13. div.tresc {
  14. background-color: #1ff;
  15. position:absolute;
  16. left:400px;
  17. top:300px;
  18.  
  19. }
  20. </style>
  21. </head>
  22. <body>
  23. <div class="menu"> <a href="index.php?strona=glowna">galeria</a><a href="index.php?strona=onas">O nas</a></div>
  24. <div class="tresc"> <?php
  25.  
  26. if (isset($_GET["strona"]))
  27. {
  28. $strona = $_GET["strona"];
  29. if ($strona == "glowna")
  30. include("glowna.txt");
  31.  
  32. }
  33.  
  34.  
  35.  
  36. ?></div>
  37.  
  38. </body>
  39. </html>


http://royson.lua.pl/h1/h2/h3/indexo.php

Widzicie może gdzieś błąd?
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: 25.09.2025 - 19:57