Problem while accesing $_POST
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Problem while accesing $_POST

From: Leszek <leszekt80@poczta.onet.pl>
Date: Tue Jan 31 2006 - 14:50:26 CET

Hi.

I have a problem with a form.
There are some select dropdown lists
for($i=0;$i<=$nrooms;$i++)
             {
             echo "<option value=\"$i\"";

            if($_POST[$dane[$idhotelu]['zamow'][$k]]==$i){ // $k is
incremented in other loop
               echo" selected";
               }// endif
             echo">$i</option>\n";
             }//endfor
           echo"</b></select></td>";

Trouble is that after reloading this form if condition is true for $i==0
even if $dane[$idhotelu]['zamow'][$k] is not zero

I think i'm making a mistake while accessing $_POST array but i' don't know
where

Thanks for help...
Leszek
Received on Tue Feb 7 21:08:16 2006