Here is my code. For some reason, if I submit the form without placing and passwords in, it still creates the database entry. There are some comments scattered throughout th
simple solution: if(!empty($_POST['xxx']) == true) almost equals when you use:
if(!empty($_POST['xxx']) == true)
if(isset($_POST['xxx']) == true && $_POST['xxx'] != '')
except: isset() regards 0(string or number) as true, while empty() regards 0 as true.