Puika1 Posted February 1, 2009 Report Share Posted February 1, 2009 Es nezināju kā to saprotamāk uzraktīt tapēc uztaisiju bildi Piemēram ukšā ir trīs pogas uzpiežot uz kādas no viņām zem pogas parādās teksts. Un es ļoti gribētu uzzināt kā to visu salikt vienā php dokumentā? Ja tu zini lūdzu palidzi man? Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 <a href="?id=1">kautkas</a> <a href="?id=2">kautkas2</a> <a href="?id=2">kautkas3</a> <?php $id = isset($_GET["id"]) ? intval($_GET["id"]) : 1; if ($id == 1) { echo "teksts, kad 1"; } else if ($id == 2) { echo "teksts, kad 2"; } else if ($id == 3) { echo "teksts, kad 3"; } else { echo "ERROR, nepareizs id"; } ?> Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 (edited) man nerada uzpiežot kādu no šiem kautkas kautkas2 kautkas3 apakšā rnekas nerādās? :( Edited February 1, 2009 by Puika1 Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 Kāpēc tu to prasi mums? - vai tev rādās vai nerādās? Mēs taču to nevaram zināt. Paņem acis rokā un paskaties - kas īsti tev rādās vai nerādās. Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 Es jums neprasu es jums palūdzu! Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 Nezinu kā tev, bet man skolā mācīja, ka teikums, kas beidzas ar jautājuma zīmi "?", ir jautājuma teikums. Un tu attiecīgi tādu prasīji: "man nerada uzpiežot kādu no .. nerādās?". Es atbildēju - es nezinu vai tev rāda vai nerāda. Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 (edited) Piedod es sajaucu man nerāda teksts kas ir apakšā piemēram šis teksts, kad 2 Edited February 1, 2009 by Puika1 Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 Ko tad tev tā vietā rāda? Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 Neko (Baltums) Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 Uzspied savam browserim, lai parāda lapas sourci (html kodu). Firefox'im to dara caur View->Page Source. Tur arī ir nekas? Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 Tur ir <a href="?id=1"><img src="kl.gif"/></a> <a href="?id=2"><img src="ts.gif"/></a> <a href="?id=2"><img src="ad.gif"/></a> <?php $id = isset($_GET["id"]) ? intval($_GET["id"]) : 1; if ($id == 1) { echo "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"; } else if ($id == 2) { echo "jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj"; } else if ($id == 3) { echo "teksts, kad 3"; } else { echo "ERROR, nepareizs id"; } ?> Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 Nu tādā gadījumā nav korekti pieinstalēts un nokonfigurēts php tavam webserverim. Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 Ir liels paldies :) be kāds lūdzu varētu pateikt kā uzlikt zem pogam tekstu man tgd rāda šādi Link to comment Share on other sites More sharing options...
bubu Posted February 1, 2009 Report Share Posted February 1, 2009 Nu tie jau ir HTML pamati. Ar php vairs tam nav nekāda sakara. poga1, poga2, poga3 <p>jjjjjjjjj</p> Link to comment Share on other sites More sharing options...
Puika1 Posted February 1, 2009 Author Report Share Posted February 1, 2009 Perfekti Paldies :):) Link to comment Share on other sites More sharing options...
Recommended Posts