Hello,
All files included here:
I have the registration form (code below). Once the form is filled, register.php updates the database after the appropriate checks.
What i am looking for is an intermediate check. Right after the username input field, I provided a "Check Avaiability" button. This button must not call "register.php". The intent here is to call "available.php" and provide the appropriate pop-up based on whether the username is available or not. If, 'No', following the alert pop-up, the Username field must be reset and this field must be the focus to re-enter username. If 'Yes', following the appropriate alert pop-up, the username field must not be disturbed and the focus must change to the next field.
Help is much appreciated.
Arun
All files included here:
I have the registration form (code below). Once the form is filled, register.php updates the database after the appropriate checks.
What i am looking for is an intermediate check. Right after the username input field, I provided a "Check Avaiability" button. This button must not call "register.php". The intent here is to call "available.php" and provide the appropriate pop-up based on whether the username is available or not. If, 'No', following the alert pop-up, the Username field must be reset and this field must be the focus to re-enter username. If 'Yes', following the appropriate alert pop-up, the username field must not be disturbed and the focus must change to the next field.
Help is much appreciated.
Arun