So I have a form for my register system. When the form submits and there\'s errors, (like \'Enter a username first!\' or \'You must provide a password!\') it successfully refres
This error means that you forget a '$' in front of the variable 'username'.
Hope this help
This is probably because you refer to some data as $_POST[username], instead of $_POST['username'], change that.
An error is occurring partway through the page, and you have error reporting disabled. Enable it and/or check your error log.
Add this to the top of the form script:
ini_set('display_errors', 'On'); // sometimes it's needed when overridden to Off
error_reporting(E_ALL);
So you can see what the error was when you submitted the form.