FLa6 Posted April 7, 2004 Report Share Posted April 7, 2004 Gribeetu uzdot prieksh jums diezgan mulkiigu jautaajumu, bet vai varat pateikt kaa var dabuut shaadu edresi PIEM: .../index.php?sadalja=jaunumi Kaads kods sheit buutu jaaraxta? Link to comment Share on other sites More sharing options...
bubu Posted April 7, 2004 Report Share Posted April 7, 2004 vispirms jautaajumu noformulee sakariigaak! ko tu domaa ar to, ka "kaa var dabuut shaadu adresi...", kur dabuut, ko ar to iesaaksi? Link to comment Share on other sites More sharing options...
Gacha Posted April 7, 2004 Report Share Posted April 7, 2004 Tev no sakuma ir jaiemācās, ko nozīmē $_GET['sadalja'] un tad ko nozīmē include("jaunumi.php"); Un tad tu sapratīsi ko tas nozīmē. Tad parocies pa forumu un tu atradīsi piemērus ar šo lietu, es mekleju bet vairs nevareju atrast. Vārdu sakot aizej uz www.php.net un palasi par $_GET un par include Link to comment Share on other sites More sharing options...
Aleksejs Posted April 7, 2004 Report Share Posted April 7, 2004 <a href=".../index.php?sadalja=jaunumi">adrese</a> Link to comment Share on other sites More sharing options...
Gacha Posted April 7, 2004 Report Share Posted April 7, 2004 Asprātīgi :D Link to comment Share on other sites More sharing options...
Aleksejs Posted April 7, 2004 Report Share Posted April 7, 2004 Kaads jautaajums, taada atbilde :lol: Link to comment Share on other sites More sharing options...
Robis Posted April 7, 2004 Report Share Posted April 7, 2004 Iisteniibaa jautaajums man liekas sakariigs! Nu, taadu adresi tu tieshaam vari dabuut, uzrakstot <a href="index.php?sadalja=jaunumi">Jaunumi</a> , tachu ja gribi zinaat, ko tas noziimee, tas jau ir cits jautaajums :) Vispirms vajadzeetu saprast, ka tas, kas seko aiz "?" ziimes vairs nav failu nosaukumi, bet mainiigie ar veertiibaam... hm... Nevar jau iisti paskaidrot, ja nav zinaams tavs php zinaashanu liimenis :D Link to comment Share on other sites More sharing options...
Ugga Posted April 8, 2004 Report Share Posted April 8, 2004 practice,practice and practice! Link to comment Share on other sites More sharing options...
sviesc Posted April 8, 2004 Report Share Posted April 8, 2004 lv.php.net tur i labs manuālis :D Link to comment Share on other sites More sharing options...
Ugga Posted April 8, 2004 Report Share Posted April 8, 2004 vienalga kaads. vajag tikai paseedeet Link to comment Share on other sites More sharing options...
neo Posted May 7, 2004 Report Share Posted May 7, 2004 (edited) <? switch($sadala){ case jaunumi: echo "tralalalala"; break; case kautkas: echo "dsfdsfsdfsdf"; break; } ?> <a href=kautkas.php?sadala=jaunumi> Jaunumi </a> <a href=kautkas.php?sadala=kautkas> kautkas </a> Ceru, ka ideju saprati. Edited May 7, 2004 by neo Link to comment Share on other sites More sharing options...
Recommended Posts