overmind Posted May 28, 2007 Report Share Posted May 28, 2007 (edited) Sveiki, man vajadzeetu palidzibu viena lietaa.. Tatad, man ir shads skriptelis index.php- 2 linki : swich.php?id=1 un swich.php?id=2 if (isset($_COOKIE["cepums"])) { if (($_COOKIE["cepums"]) === "1") {include '1.php';} elseif (($_COOKIE["cepums"]) === "2") {include '2.php';} } else {include '1.php';} swich lapa- <? if (isset($id)) {setcookie("cepums", $id, time()+604800);} ?> <meta http-equiv="Refresh" content="0; url=index.php"> uz FF vis straadaa, bet uz IE jaspaida varakas reizes uz linku lai includotos attiecigais fails.. kapeec taa? varbut kads var ieteikt savadaku veidu? Edited May 28, 2007 by overmind Link to comment Share on other sites More sharing options...
Exzo Posted May 28, 2007 Report Share Posted May 28, 2007 Es kautkā neiebraucu kopainā. Vispār inklūdošanai nav nekāda sakara ar IE vai FF, jo viss notiek server-side, bet vot <meta http-equiv="Refresh"[..]> gan. Pārliecinies ka refrešs vispār notiek. Link to comment Share on other sites More sharing options...
overmind Posted May 28, 2007 Author Report Share Posted May 28, 2007 Viss kaartiibaa, mana vaina ;) Biju piemirsis nonjemt no linkiem onClick="history.go(0)" :) Link to comment Share on other sites More sharing options...
4e4en Posted May 28, 2007 Report Share Posted May 28, 2007 ieteikums, validē to, ko dod čerez cepumiem, jo tā var iemānīt arī redirect uz citu lapu izmantojot tava_lapa.php?id=someshit%10Location:%20http://draugiem.lv %10 vietā vajag būt tam simbolam iekš hex, kas pārnes jaunā rindā es neatceros, vai tas piederēja arī setcookie, bet ja to dod caur header tad varējaa tā pavarot Link to comment Share on other sites More sharing options...
hackerman Posted May 28, 2007 Report Share Posted May 28, 2007 Tu pats sevi redirektēsi... Jēga? Link to comment Share on other sites More sharing options...
Exzo Posted May 28, 2007 Report Share Posted May 28, 2007 ieteikums, validē to, ko dod čerez cepumiem, jo tā var iemānīt arī redirect uz citu lapu izmantojot bet šajā gadījumā takš pats IF "validē" uz 1 un 2 Link to comment Share on other sites More sharing options...
Recommended Posts