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


Besides that, I would use the form of Lallous:

if ( empty( trim( $_POST[ "new_password1" ] )
    echo "Empty!";


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to