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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php