I'm trying to create a login system for my homepage and don't want the users to be able to submit empty fields in the form. I want to get an mysql error if someone tries to do it. But it doesn't seem to work although I've set the attributes of the table to be NOT NULL.
I get an mysql error if I submit 'null'(not a string), but not if I submit an empty string ''.
Can someone please help me!
Thanks!
I get an mysql error if I submit 'null'(not a string), but not if I submit an empty string ''.
Can someone please help me!
Thanks!