Quick Question for you all. In my sub signup in db.cgi, I have added the line
$in{'userid'} = $in{'fn'} . $in{'ln'};
This will allow me to take the First Name & Last name from the html signup form, and create a user id. What i need to find out is, what coding would I use to make the First name one initial (i.e. They enter Chris as their name, and it shortens it to C). I would also need to use this for the last name field, to cut it down to 11 characters - forming a 12 character userid.
Thanks for any help you can give!
Chris Kinsler
$in{'userid'} = $in{'fn'} . $in{'ln'};
This will allow me to take the First Name & Last name from the html signup form, and create a user id. What i need to find out is, what coding would I use to make the First name one initial (i.e. They enter Chris as their name, and it shortens it to C). I would also need to use this for the last name field, to cut it down to 11 characters - forming a 12 character userid.
Thanks for any help you can give!
Chris Kinsler