try this: if (empty(trim($_POST[new_password1]))) { echo 'Empty!!!'; } "Meltem Demirkus" <[EMAIL PROTECTED]> wrote in message 001701c25a2c$4758d4a0$55000083@hiborya">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 >
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php