Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]struktura if else
marian84
post 21.04.2009, 08:01:12
Post #1





Grupa: Zarejestrowani
Postów: 185
Pomógł: 10
Dołączył: 29.01.2008

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


Mam prostą strukturę pliku index.php

Kod
(...)

if($_GET['str']=='foto')
{
    include('foto.php);
}
elseif($_GET['str']=='pliki')
{
    include('costam.php');
}
itd.

(...)


kod niestety wyswietla błąd:

Notice: Undefined index: str in (...) index.php on line 5

Czemu?
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 Wersja Lo-Fi Aktualny czas: 24.07.2025 - 17:42