art.y Posted May 19, 2008 Report Share Posted May 19, 2008 Kā lai izpilda if vaicājumu, kad option value="0" ? Šāds variants nestrādā... <form method="post"> <select name="vietas"> <option value="0" name="all">Visas</option> ... <input type="submit" value="Atlasīt" name="place"> if (isset($_POST['place'])) { if (isset($_POST['all'])) { Link to comment Share on other sites More sharing options...
andrisp Posted May 19, 2008 Report Share Posted May 19, 2008 Option elementiem nav name atribūts. if ($_POST['vietas'] == 0) { } Link to comment Share on other sites More sharing options...
Grey_Wolf Posted May 19, 2008 Report Share Posted May 19, 2008 (edited) pashos pamatos nepareiza pieeeja :( <optionam nevajag name atributu ... tas jaliek pie <select ... tad arii varesi parbaudiit... edit: andrisp --> vienlaicigi un zibeniigi ;) Edited May 19, 2008 by Grey_Wolf Link to comment Share on other sites More sharing options...
art.y Posted May 19, 2008 Author Report Share Posted May 19, 2008 PALDIES! Tiešām zibenīgi! ;) Link to comment Share on other sites More sharing options...
Recommended Posts