Re: what is wrong?

From: Date: Thu, 12 Sep 2002 08:42:18 +0000
Subject: Re: what is wrong?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116104@lists.php.net to get a copy of this message
try this: if (empty(trim($_POST[new_password1]))) { echo 'Empty!!!'; } "Meltem Demirkus" <mdemirkus@momentum-dmt.com> wrote in message news:001701c25a2c$4758d4a0$55000083@hiborya... > 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 >

« previous php.general (#116104) next »