Create User ID, Registering New User on Website
Posted on 2012-09-07
Instead of having an admin create the users manually through a form, I want the new user to be able to get to the site login and register for a new login ID themselves. The login ID is a specific format so they can't just go in and create their own ID. I will have a link there for them to click 'New User' which will bring them to a form to fill out with validation so the form and the values are submitted properly. The format for the log in ID is as follows: hid[first letter of first name][first letter of middle name, if none provided it defaults to X][first letter of last name][randomly generated 4 character string]. For instance, in my case, it would be hidlrlzpn1. The form obviously is going to have fields for First Name, Middle Initial, Last Name, email address, and password.
Is there a good example out there to create this type of ID? Or can anyone help with the creation of this auto ID? It will be loaded into the user table with the following parameters: ID, FNM, MIN, LNM, EML, PSW.