I want to know how to validate inputs after typing without using any frameworks or complicated code since this is only for my registration form?
Like some website after i type the email they automatically validate like the email is “already use” or email is “valid”
I’m using HTML and CSS for my front-end and PHP and WAMP for my back-end.
Thanks!
The simplest way would be to use Javscript to validate your fields. The better way is to post your data to a PHP script on your server. This can be accomplished using javascript and a text field event, like onblur. So when the user is done entering text into your text field, you post the data to your server. A PHP script can then validate it by checking a database or whatever it needs to do. You can then return a response to your javascript, indicating success or failure. Look up AJAX calls. You might be better off using jQuery, it’s a bit easier than raw javascript.