localhero Posted January 5, 2008 Report Posted January 5, 2008 Tas nozime ka $_GET['ipashums'] = 1; Tev vispar DB pieslegums ir ?
Re_Boot Posted January 5, 2008 Author Report Posted January 5, 2008 (edited) Protams :D Edited January 5, 2008 by Re_Boot
andrisp Posted January 5, 2008 Report Posted January 5, 2008 Nu moins - tev taču jau parādīju kā to panākt. Kas tev nav saprotams?
Re_Boot Posted January 6, 2008 Author Report Posted January 6, 2008 Nu kaa man tagad links address bara jaraksta? Http://manaddrese.lv/ierochi.php?ierocis=1 Un kads varetu izskaidrot detalizeetak? :(
andrisp Posted January 6, 2008 Report Posted January 6, 2008 Tieši tā arī būtu jāraksta. Ja tu kodā izmanto, piemēram, $_GET['id']. Tad address bārā būtu jāraksta ?id=123. Un par to kodu uzdod konkrētus jautājumus, ko tu nesaproti.
Re_Boot Posted January 6, 2008 Author Report Posted January 6, 2008 Man piemeram rada manu ipashumu, (bet man var but daudzi ipashumi), un ja tev ir vairak par vienu ipashumu tad paradas velviens lodzinjsh, kur tu uzpied un paradas tavs otrs ipashums, bet lai man nebutu jaataisa daudzi PHP faili, kur katra ir savs ipashums, man vajag ar to ?=ID, lai paradiitu nakoshu ipashumu vienkaarshi uzpiezhot.. piemeram ID 1 un tad paraada manu pirmo ipashumu, ID 2 parada manu otro ipashumu ja man tads ir!
Mikijs Posted January 6, 2008 Report Posted January 6, 2008 es to iemacijos shadi :D piemeram index.php?open=1 , ?open=2 <?php if ($open == "1") { echo "<h2>Open = 1<h2><br><a href='?open=2'>Open 2?</a>"; } elseif ($open == "1") { echo "<h2>Open = 2<h2><br><a href='?open=1'>Open 1?</a>"; } else { echo "<h2>???</h2>"; } echo "<hr><center>Mikijs</center>"; ?>
Re_Boot Posted January 6, 2008 Author Report Posted January 6, 2008 (edited) Paldies, mikijs, tavs posts man mazliet palidzeja! :) Mazliet? Jaa tapec ka šaadi jataisa ir katram ?open=1 , 2 ,3 ,4 :) un ar to nevar atvert no datubazes.. Edited January 6, 2008 by Re_Boot
Mikijs Posted January 6, 2008 Report Posted January 6, 2008 :) nekas.. bet shadi var iemacities pasus pamatus velak aizies $_GET['']; / $..post isset..
Re_Boot Posted January 6, 2008 Author Report Posted January 6, 2008 (edited) Eu starpcitu tu nezini, kaa lai Radio Button, ar $_POST nevis njem Name, bet Checked Value? Edited January 6, 2008 by Re_Boot
Mikijs Posted January 6, 2008 Report Posted January 6, 2008 (edited) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="lv"> <head> </head> <body> <hr /> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post" name="for" id="for"> izvelies: <input type="radio" name="radio" id="radio_1" value="ja" /> Ja <input type="radio" name="radio" id="radio_2" value="ne" />Ne <br /><input type="submit" name="submit" id="ok" value="Ok" /></form><br> </body> </html> Edited January 6, 2008 by Mikijs
Re_Boot Posted January 6, 2008 Author Report Posted January 6, 2008 a kam tev pec id? ja var pec name Tur ir viena probleminja, ja es nelieku visiem radio button vienadus NAME, tad var IECHECKOT visus reizee, a man vajag lai tikai vienu var, nu tur tiek dota izvele!
Re_Boot Posted January 6, 2008 Author Report Posted January 6, 2008 Paldies par tavu skriptu, bet taa neies krastaa, man vajag lai pec ID skatas.. ka jau ieprieksh teicu
Mikijs Posted January 6, 2008 Report Posted January 6, 2008 <form type='post' action='<? echo $_SERVER['PHP_SELF']; ?>'> <input type='radio' name='r' value='1' checked> Jaa <input type='radio' name='r' value='0'>Nee <input type='submit' value='ok'> </form> <? echo "Radio izvele:"; if ($_GET['r'] == "1") { echo "Ja"; } elseif ($_GET['r'] == "0") { echo "Ne"; } ?>
Recommended Posts