neo Posted March 10, 2005 Report Share Posted March 10, 2005 (edited) Labdien. Taads scenaarijs: <? switch($_GET['c']){ case jaunumi: echo "paaada jaunumus"; break; case galerija: echo "paaada galeriju"; break; } utt,. Taatad adrese buus ?c=jaunumi vai ?c=galerija utt. Kaadaa veidaa var izmantot sesijas id lai nodotu mainiigos caur adresi kad register_globals=off? Paldies Edited March 10, 2005 by neo Link to comment Share on other sites More sharing options...
Osiris Posted March 10, 2005 Report Share Posted March 10, 2005 Ja es pareizi sapratu problēmu, tur var iztikt bēz sessijas, tikai katrā scenārijā, kurš piedālās, jareģistrē "$c" ar rociņām: if(isset($_POST["c"])) $c=$_POST["c"]; Un talāk switch($c) { ///////////// } Man kaut kas lidzīgs strādā (register_globals=off). Ja es domaju nepareizi, lūdzu iemācījiet mani arī. Link to comment Share on other sites More sharing options...
kirils Posted March 10, 2005 Report Share Posted March 10, 2005 pimrkaart peec case to vaardu vajag likt peedaas, otrkaart kaads tam visam sakars ar session_id ? session id mainiigo glabaashanai der, nevis nodoshainai. straadaas taapat. Link to comment Share on other sites More sharing options...
Recommended Posts