I also want to make a form to edit a user but when they edit thier own info they don't have to put a password in if they don't want to change it and also so the admin can edit thier info and not have to put a password in the blank for it to stay the same.
Change thhe first line to if(($now > 6) AND ($now < 12))
Because the condition if(($now > 6) OR ($now < 12)) that you've given is always true.
Next
add a check box clicking on which displays two password fields for entering password and if this checkbox is unchecked these fields disappear you can do this using DIV tag
In the server side check if the check box is checked and update the password field if it is