Probably the easiest way is to change your have your HTML form feed to a PHP script (login.php) that uses the header command. Something to the effect of
<?
$UserId = $HTTP_POST_VAR['id'];
header("Location: /$userId/")
?>
Play with it, it'll get you there.
~Living below, looking above.