I am working on a web application where I hire someone email address should automatically get created.
I need to create a java script page that would have a function to basically create email addresses on the fly for the users.
So 4 employees get hired in the following order - John Smith, John Smitty, John Small, John Smooth.
John Smith would get johns@whatever.com
John Smitty would get johnsm@whatever.com
John Small would get johnsma@whatever.com
John Smooth would get johnsmo@whatever.com
An additional letter is taken from the last name until there is a unique ID. Since the ID’s are kept indefinitely, if any of the users above leave the company a unique ID would still reference the old ID’s in order to create a new one. If a person got hired with a name of John Smaagaard he would get an ID of johnsmaa.
Any help is appreciated....
I need to create a java script page that would have a function to basically create email addresses on the fly for the users.
So 4 employees get hired in the following order - John Smith, John Smitty, John Small, John Smooth.
John Smith would get johns@whatever.com
John Smitty would get johnsm@whatever.com
John Small would get johnsma@whatever.com
John Smooth would get johnsmo@whatever.com
An additional letter is taken from the last name until there is a unique ID. Since the ID’s are kept indefinitely, if any of the users above leave the company a unique ID would still reference the old ID’s in order to create a new one. If a person got hired with a name of John Smaagaard he would get an ID of johnsmaa.
Any help is appreciated....