Re: what is wrong?

From: Date: Thu, 12 Sep 2002 10:13:34 +0000
Subject: Re: what is wrong?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-116127@lists.php.net to get a copy of this message
Meltem Demirkus wrote: > 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"; And as final addition, you probably have to use $_POST["new_password1"] Besides that, I would use the form of Lallous: if ( empty( trim( $_POST[ "new_password1" ] ) echo "Empty!"; HTH Erwin

« previous php.general (#116127) next »