MySQLi Check New Username and Server Validations on same page? Not possible?
I have a simple registration form on a page that asks for just a username (email) and password. I want to use the MySQLi Check New Username behaviour on this page to check against the username in case it's already registered.
However, I also want to run a server validation on the password field so that it contains between 8-16 characters and also so that it doesn't include spaces or certain characters.
Can I get this to work? Nope.
I can't set an action on the form because that cancels out the Check New Username behaviour. I can't set a "success" redirect page with the Check New Username behaviour, only a failure page. I have to direct to a separate page in order to get Server Validation to work.
My head hurts. What is the proper order in which I should do this?