Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Odnośniki, Jak zrobić odnosnik
-Gość_Piotrek-
post 31.12.2004, 13:40:36
Post #1





Goście







Jak stworzyć odnosnik, który po wpisaniu np. index.php?id=costam:worried: otwierała strona costam.php??
Go to the top of the page
+Quote Post
stoprocent
post 31.12.2004, 13:53:39
Post #2





Grupa: Zarejestrowani
Postów: 338
Pomógł: 2
Dołączył: 17.05.2003
Skąd: Kraków , Londyn

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


  1. <?php
  2.  
  3.  
  4. $pages = array('index.html', 'page2.html', 'page3.html'); 
  5. //tu wpisujesz nazwy stron ktore chcesz otworzyc
  6.  
  7. if( in_array($page, $pages) )
  8. {
  9. include($page);
  10. {
  11. else
  12. {
  13.  die(&#092;"Nice Try.\");
  14. } 
  15.  
  16.  
  17.  
  18. ?>


--------------------
Go to the top of the page
+Quote Post

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: 28.04.2024 - 02:43