Hi,
I have created a form where users/admin can add new users to the system. I managed to get the username to be unique by checking usernames that are already in those tables. If a username already exists, then it goes to an error page. But what I would really like, and think is more professional, is for it to almost refresh the registration page, with all the correct details filled in, but take out the username they entered, and have some text above the input box that just says "Please choose a different username". I really don't know how to do this! Please can someone point me in the right direction. I have tried creating a new page that looks the same, and to get the values from POST but this doesn't work.
Thanks!
I have created a form where users/admin can add new users to the system. I managed to get the username to be unique by checking usernames that are already in those tables. If a username already exists, then it goes to an error page. But what I would really like, and think is more professional, is for it to almost refresh the registration page, with all the correct details filled in, but take out the username they entered, and have some text above the input box that just says "Please choose a different username". I really don't know how to do this! Please can someone point me in the right direction. I have tried creating a new page that looks the same, and to get the values from POST but this doesn't work.
Thanks!