https://www.thetqweb.com/website/html-php-mysql/how-to-create-a-strict-registration-form-using-html-php-and-mysql/
How to create a strict Registration Form using HTML, PHP and MySQL