by Davo Smith.
No, I definitely did not mean ask the user to use Ctrl-C / Ctrl-V to copy the username across, what I meant was something like this (in PHP, after the form has been submitted):
function process_the_form($formdata) {
...
$formdata->username = $formdata->email;
...
}