|
Posted by halkeye@gmail.com on 10/05/06 19:18
Off the top of my head, since you don't say what $dtctxsz1 is. I'd say
its because $dtctxsz1 is blank or null, which "== 0" returns true for.
you could try $dtctxsz1 === '' or !isset($dtctxsz1).
Gavin
On Oct 5, 12:09 pm, "Garry Jones" <garry.jo...@morack.se> wrote:
> $antroj=0;
> $dtctxsz1 = $_POST["dtctxsz1"];
> if($dtctxsz1 == 0){
> print $dtctxsz1;
> $antroj = $antroj + 1;
>
> }It adds 1 to $antroj even when the value of $dtctxsz1 is not 0. I have
> spent 7 hours on this one problem. Its driving me nuts.
>
> Garry Jones
> Sweden
Navigation:
[Reply to this message]
|