First of all, please edit your post and wrap all PHP code in the board's [ PHP ][ /PHP ] tags (without the spaces) as this makes it much easier on the eyes :p
For the redirection, that's easy enough - just change this line:
print '<p><b>You are now registered!</b><br /></p>';
to this:
header('Location: http://mysite.com/path/to/secondPage.php');
For the table, you'd do something like this:
echo '<form action="register.php" method="post"><table width="550" align="center">
<tr>
<td width="15%">Username:</td>
<td width="85%"><input type="text" name=username" size="20" value="' . @$_POST['username'] . '" /></td>
</tr>' . // etc., each field in its own row
'</table>
</form>';