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:
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