Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Tytuł strony inny na każdej stronie.
GoldeNx3
post
Post #1





Grupa: Zarejestrowani
Postów: 228
Pomógł: 1
Dołączył: 24.12.2010

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


Witam! Mam tak napisaną stronę:

  1. <html>
  2. <head>
  3. <title>Tytuł</title>
  4.  
  5. <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
  6. <meta name="description" content="desc" />
  7. <meta name="keywords" content="key" />
  8.  
  9. <link rel="stylesheet" href="style.css" type="text/css" />
  10. </head>
  11.  
  12. <body>
  13.  
  14. <?php
  15. define('DIR', 'pages/');
  16.  
  17. switch($_GET['mdl'])
  18. {
  19. case $_GET['mdl']:
  20. if(file_exists(DIR . $_GET['mdl'] . '.php')){
  21. include(DIR . $_GET['mdl'] . '.php');
  22. }
  23. break;
  24. }
  25. ?>
  26.  
  27. </body>
  28. </html>


Oczywiście usunąłem co nie potrzebne.
Ale tutaj mam tytuł strony tylko jeden. ("Tytuł")
A co, jak w zależności od strony chciałbym dać inny tytuł strony? To jak?

Ten post edytował GoldeNx3 13.04.2012, 14:48:02
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 20.08.2025 - 12:37