Hey,
I'm trying to figure out an easy way to modify a user account creation script I've put together to where the user's first and last name are collected and used to generate a username for them.. (instead of allowing them to supply their own..)
e.g. John Smith would be created as jsmith.
John Smith #2 would then be created as jsmith2.
Any simple ideas on how I can strip the form data down to the first letter? And how I should append numbers to create unique names when necessary?
I'm trying to figure out an easy way to modify a user account creation script I've put together to where the user's first and last name are collected and used to generate a username for them.. (instead of allowing them to supply their own..)
e.g. John Smith would be created as jsmith.
John Smith #2 would then be created as jsmith2.
Any simple ideas on how I can strip the form data down to the first letter? And how I should append numbers to create unique names when necessary?