# Php something weird?

**URL:** <https://forum.kirupa.com/t/php-something-weird/198317>\
**Category:** Uncategorized\
**Created:** [August 24, 2006, 2:53am UTC](https://forum.kirupa.com/t/php-something-weird/198317 "2006-08-24T02:53:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flash\_Man1](https://avatars.discourse-cdn.com/v4/letter/f/8797f3/32.png) [@Flash\_Man1](https://forum.kirupa.com/u/Flash_Man1)\
**Post date:** [August 24, 2006, 2:53am UTC](https://forum.kirupa.com/t/php-something-weird/198317/1 "2006-08-24T02:53:06Z")

</div>

hey all i have a script which registers users to a database and there is one line of code that is going a bit crazzy here it is:

its just to check if the field is left blank:

```auto
if($username==NULL|$password==NULL|$cpassword==NULL|$email==NULL) {
echo "A field was left blank.";
}

```

for some reason when i test this with all fields filled in correctly it still says a field was left blank :S…when i remove this bit of code the form works great! 🙂

any ideas peeps?  
ps i have tried $username == “” aswell and nothing ☹

thanks in advance 🙂
