keiby Posted September 3, 2004 Report Share Posted September 3, 2004 (edited) kauko es nemaaku izdariit, laikam. ir shaadi kodi : 1.php: ---------------------------------------------------------- <form action="2.php" method="post"> <a href="1.php?veert=2">click me</a> <? switch ($_GET['veert']){ case "2":{ echo "<input type=\"submit\" value=\"Tālāk\">"; break; } } ?> </form> ---------------------------------------------------------- un 2.php: ---------------------------------------------------------- <? echo $veert; ?> ---------------------------------------------------------- beigaas netiek izdrukaats $veert :unsure: Edited September 3, 2004 by keiby Link to comment Share on other sites More sharing options...
bubu Posted September 3, 2004 Report Share Posted September 3, 2004 (edited) 2.php failu palabo uz: <?php echo (isset($_GET['veert'])? $_GET['veert'] : 'nav veert'); ?> Edited September 3, 2004 by bubu Link to comment Share on other sites More sharing options...
keiby Posted September 3, 2004 Author Report Share Posted September 3, 2004 2.php failu palabo uz: <?php echo (isset($_GET['veert'])? $_GET['veert'] : 'nav veert'); ?> un ? izdrukaaja man nav veert :blink: Link to comment Share on other sites More sharing options...
keiby Posted September 8, 2004 Author Report Share Posted September 8, 2004 hmm. paartaisiiju 2.php uz shaadu: <form action="2.php" method="post"> <a href="1.php?veert=2">click me</a> <? switch ($_GET['veert']){ case "2":{ echo "<input type=\"submit\" value=\"Tālāk\">"; break; } } ?> <input type="hidden" name="veert" value="<? echo $veert; ?>"> </form> respektiivi, ar priekhpeedeejo rindinju. un tagad straadaa un ir tas, ko es gribeeju. Bet jautaajums cik tas ir pareizi ? Link to comment Share on other sites More sharing options...
bubu Posted September 8, 2004 Report Share Posted September 8, 2004 $_POST (input lauki) vērtības tiek padotas, tad kad formu submito $_GET (linku parametri) vērtības tiek padotas, tad kad klikšķina uz linka, vai formas actionā Link to comment Share on other sites More sharing options...
rudzis Posted September 8, 2004 Report Share Posted September 8, 2004 Ar $_POST vari neljaut rakstiit pa taisno adres bar'aa, obligaati jaasubmito forma. Link to comment Share on other sites More sharing options...
Gacha Posted September 8, 2004 Report Share Posted September 8, 2004 Diezgan dīvains tev tas teikums padevās! bubu tak teica: $_POST (input lauki) vērtības tiek padotas, tad kad formu submito$_GET (linku parametri) vērtības tiek padotas, tad kad klikšķina uz linka, vai formas actionā Link to comment Share on other sites More sharing options...
Recommended Posts