Re: what is wrong?

From: Date: Thu, 12 Sep 2002 10:11:47 +0000
Subject: Re: what is wrong?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116125@lists.php.net to get a copy of this message
In article <001701c25a2c$4758d4a0$55000083@hiborya>, mdemirkus@momentum- dmt.com says... > Hi, > I want to understand what is wrong with this code?I am trying to understand > when an empty inputs come from form and I will then give a warning message.. > > if($_POST[new_password1] == " ") > > echo "empty input"; > > > > thanks.. > > meltem Well, you are comparing it to a non-empty string of three spaces rather than an empty value "". -- David Robley Temporary Kiwi! Quod subigo farinam

« previous php.general (#116125) next »