truksta skliaustelio, turetu buti <?php $kalba = 'lt'; $puslapis = 'naujienos'; if(isset($_GET['page'])) $puslapis = $_GET['page']; if(isset($_GET['lang'])) $kalba = $_GET['lang']; include ("include/title".$kalba); include ("include/head".$kalba); include ("content/".$puslapis.".".$kalba); include ("include/foot".$kalba); ?> "Exo" <exoNO@SPAMc123.lt> wrote in message news:i3tkun$f6d$1@trimpas.omnitel.net... > Niu dabar vaapšče nieko neberodo :) > syntax error, unexpected T_VARIABLE on line: if(isset($_GET['page']) > $puslapis = $_GET['page']; > > Exo > > "Monas" <monazzz@gmail.com> wrote in message > news:i3tjso$ddi$1@trimpas.omnitel.net... >> Nezinau ar tau to reikia, nu bet kazkas i ta puse turetu but ;) >> <?php >> $kalba = 'lt'; >> $puslapis = 'naujienos'; >> if(isset($_GET['page']) $puslapis = $_GET['page']; >> if(isset($_GET['lang']) $kalba = $_GET['lang']; >> include ("include/title".$kalba); >> include ("include/head".$kalba); >> include ("content/".$puslapis.".".$kalba); >> include ("include/foot".$kalba); >> ?> >> >> "Exo" <exoNO@SPAMc123.lt> wrote in message >> news:i3s4rf$t12$1@trimpas.omnitel.net... >>> Tai o šitą teisingai supratau ar ne? >>> >>> Exo >>> >>>> Ta prasme taip: >>>> <?php >>>> if ($_GET['page'] == "") $_GET['page'] = "naujienos"; >>>> if ($_GET['lang'] == "") $_GET['lang'] = "lt"; >>>> include ("include/title.") . $_GET['lang']; >>>> include ("include/head.") . $_GET['lang']; >>>> include ("content/") . $_GET['page'] . "." . $_GET['lang']; >>>> include ("include/foot.") . $_GET['lang']; >>>> ?> >>>> >>>> jei taip tai situacijos tai nepakeitė, viskas tas pats >>>> >>>> Exo >>>> >>>> "bertas" <bertas@freemail.lt> wrote in message >>>> news:i3rf2h$vjm$1@trimpas.omnitel.net... >>>>> Nenaudok register_globals. Geriau naudok $_GET['page'] vietoj $page, >>>>> arba jei nenori tokio griozdo naudoti tai priekyje irašyk >>>>> $page=(isset($_GET['page')?$_GET['page']:''); >>>>> >>>>> 2010.08.10 15:22, Exo rašė: >>>>>> Klaida: "Undefined variable page in ....index.php on line ..." >>>>>> Ir galima gal konkrečiau apie isset($page), kur jį įdėt, nes neesu >>>>>> labai >>>>>> išprusęs šiuo klausimu :) >>>>>> >>>>>> Exo >>>>>> >>>>>> >>>>>> "dgjgh" <sdfsdf@asdf.com> wrote in message >>>>>> news:i3rcf8$r48$1@trimpas.omnitel.net... >>>>>>> klaidos nenori parodyt ? >>>>>>> bet galbut i if'a idek patikrinima isset($page) >>>>>>> >>>>>>> "Exo" <exoNO@SPAMc123.lt> wrote in message >>>>>>> news:i3r9f4$m7j$1@trimpas.omnitel.net... >>>>>>>> Sveiki, >>>>>>>> >>>>>>>> Susidūriau su problema, jei parašau : >>>>>>>> <? >>>>>>>> if ($page == "") $page = "naujienos"; >>>>>>>> if ($lang == "") $lang = "lt"; >>>>>>>> include ("include/title.") . $lang; >>>>>>>> include ("include/head.") . $lang; >>>>>>>> include ("content/") . $page . "." . $lang; >>>>>>>> include ("include/foot.") . $lang; >>>>>>>> ?> >>>>>>>> ant hostingo viskas veikia puikiai o ant localaus serverio rodo tik >>>>>>>> backgroundą ir nerodo contento. >>>>>>>> Pabandžiau parašyt taip kaip turi būt >>>>>>>> <?php >>>>>>>> if ($page == "") $page = "naujienos"; >>>>>>>> if ($lang == "") $lang = "lt"; >>>>>>>> include ("include/title.") . $lang; >>>>>>>> include ("include/head.") . $lang; >>>>>>>> include ("content/") . $page . "." . $lang; >>>>>>>> include ("include/foot.") . $lang; >>>>>>>> ?> >>>>>>>> tai dabar ant localaus serverio rodo visus meniu bet išmeta jog >>>>>>>> klaidos šiose eilutėse: >>>>>>>> if ($page == "") $page = "naujienos"; >>>>>>>> if ($lang == "") $lang = "lt"; >>>>>>>> ir nerodo pačio kontento. Gal galit man žaliam paaiškinti ką blogai >>>>>>>> padariau? :) >>>>>>>> Dėkui >>>>>>>> >>>>>>>> Exo >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>> >> >>