Using Only PHP , checking the username is impossible because its takes a lot of time to go to server then back to page. The thing here is page refresh. So i have used here the ajax.This type of example can be seen during sign up, user registration and so on.
Start:
Available:
Not Available:
Every Availability check is done on keypress event.This application is developed using php,ajax and jquery.