Topic: Use full name (firstname lastname) as username
Another syntax question from this non-PHP coder...
I'd like to use the full names of members as usernames, instead of the silly fantasy names people are forced to come up with.
I guess I have to add a line before this line in register.php:
$db->query('INSERT INTO users ...
I guess I have to add something like this (and remove a seperate username field from the form and elsewhere in the code):
$username = $firstname $lastname
But what would the right syntax be? And would that do the trick?
And would it mess up the system? I've found no problems with spaces and capitals in usernames.