Autor Zpráva
include
Profil *
Mam v scripte:

<?php
include ("includes/header.php");
include ("includes/submenu/uvod.php");
$soubor = "stredy/".$go.".php";
if (!file_exists($soubor)) {
$soubor = "stredy/uvod.php";
}
include ($soubor);
include ("includes/menu.php");
include ("includes/footer.php");
?>


Ale ked zadam index.php?go=kontakt tak sa mi vyhodi uvod.php

Kde mam chybu???
Nox
Profil
Protože parametr z url se nedá do $nazev_promenne ale $_GET["nazev_promenne"]
takže místo $go užij $_GET["go"]
include
Profil *
a ako by som to mal zapisat do scriptu?
Nox
Profil
?
Prostě to přejmenuj
widlak
Profil
<?php
include ("includes/header.php");
include ("includes/submenu/uvod.php");
$soubor = "stredy/".$_GET['go'].".php";
if (!file_exists($soubor)) {
$soubor = "stredy/uvod.php";
}
include ($soubor);
include ("includes/menu.php");
include ("includes/footer.php");
?>
ninja
Profil
include: $soubor = "stredy/".$_GET["go"].".php";

Precetl jsi i druhy radek Noxovi odpovedi?!
include
Profil *
Aha, ja som blbec, proste niekedy mam trosku dlhsie vedenie, sry:)
r0me0
Profil
to jo, hlavně že umíš poprosit a poděkovat že?
include
Profil *
Diky

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0