art.y Posted May 19, 2008 Report 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'])) {
andrisp Posted May 19, 2008 Report Posted May 19, 2008 Option elementiem nav name atribūts. if ($_POST['vietas'] == 0) { }
Grey_Wolf Posted May 19, 2008 Report 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
Recommended Posts