Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> strony typu index.php?page=
vtuner
post
Post #1





Grupa: Zarejestrowani
Postów: 220
Pomógł: 10
Dołączył: 23.08.2005
Skąd: Łódź

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


mam cos takiego:
  1. <?php
  2. if($chop == $_GET['chop'])
  3. {
  4. if ( $chop == "AMV")
  5. {
  6. include 'amv.php';
  7. }
  8. else if ( $chop == "CPWerks")
  9. {
  10. include 'cpwerks.php';
  11. }
  12. }
  13. else if($page == $_GET['page'])
  14. {
  15. if ( $page == "")
  16. {
  17. include 'start.php';
  18. }
  19. else if( $page == "dupa")
  20. {
  21. include'dupa.php';
  22. }
  23. }
  24.  
  25. ?>


i nie chce mi się wyswietlic start.php przy samym poczatku strony a powinno. Co jest zle?
TZN
Mam tabele w ktorej ma to się wyświetlać. I przy samym stacie strony powinno do tabeli zaincludowac start.php i pokazac jego zawartość a nie pokazuje. Reszta jest wporządku tylko to jedno jest zle.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
vtuner
post
Post #2





Grupa: Zarejestrowani
Postów: 220
Pomógł: 10
Dołączył: 23.08.2005
Skąd: Łódź

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


teraz mam tak
  1. <?php
  2.  
  3. var_dump($_GET);
  4. $chop = $_GET['chop'];
  5. $page = $_GET['page'];
  6. if($chop)
  7. {
  8. if ( $chop == "AMV")
  9. {
  10. include 'amv.php';
  11. }
  12. else if ( $chop == "CPWerks")
  13. {
  14. include 'cpwerks.php';
  15. }
  16. }
  17. else if($page)
  18. {
  19. var_dump($page);
  20. if ( $page == "")
  21. {
  22. include 'start.php';
  23. }
  24. else if( $page == "dupa")
  25. {
  26. include'dupa.php';
  27. }
  28. }
  29. ?>

i takie bledy mi wychodza

2039array(0) { }
Notice: Undefined index: chop in adres_pliku on line 3

Notice: Undefined index: page in adres_pliku on line 4
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: 26.12.2025 - 17:57