Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [PHP]Przejscie z php4 do php5
--robercik--
post
Post #1





Goście







Witam,

Serwer na ktorym mam stronke przechodzi z php4 na php5. wchodzac na strone testowa okazuje sie, ze po nacisnieciu na odnosniki ciagle pojawia sie strona startowa.

Tak wyglada kod php dla 4
  1. <?php 
  2.  
  3. if(empty($id) or $id=="glowna"){
  4. include("glowna.html");
  5. }
  6.  
  7. if($id=="oferta"){
  8. include("oferta.html");
  9. }
  10.  
  11. if($id=="kalendarz_1"){
  12. include("kalendarz_1.html");
  13. }
  14.  
  15. if($id=="szkolenia"){
  16. include("szkolenia.html");
  17. }
  18.  
  19. if($id=="s_RID"){
  20. include("s_RID.html");
  21. }
  22.  
  23. if($id=="wspolpraca"){
  24. include("wspolpraca.html");
  25. }
  26.  
  27. if($id=="newsletter"){
  28. include("newsletter.html");
  29. }
  30.  
  31. ?>


Jak to zmienic, aby dzialalo poprawnie w php5.
Go to the top of the page
+Quote Post
nospor
post
Post #2





Grupa: Moderatorzy
Postów: 36 557
Pomógł: 6315
Dołączył: 27.12.2004




nie $id a $_GET['id']
http://nospor.pl/php-faq-n29.html#faq-3


--------------------

"Myśl, myśl, myśl..." - Kubuś Puchatek || "Manual, manual, manual..." - Kubuś Programista
"Szukaj, szukaj, szukaj..." - Kubuś Odkrywca || "Debuguj, debuguj, debuguj..." - Kubuś Developer

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 Aktualny czas: 21.08.2025 - 20:36