I'm creating a registration form and I would like to check if the user already exist using PHP and HTML5 validation.
So somehow I would like to send the username that was typed in to a PHP function and write error message with setCustomValidity()
in JavaScript (HTML5)
Can anyone offer me any advice to achieve this?