Reply to Re: Whats wrong with this code?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация