how do i add last name new field in default user registration page how do i add last name new field in default user registration form my code is

$form['account']['lname'] = array('#type' =&gt; 'textfield',
  '#title' =&gt; t('LastName'),
  '#default_value' =&gt; $edit['LastName'],
  '#maxlength' =&gt; LASTNAME_MAX_LENGTH,
  '#description' =&gt; t('Spaces are allowed; punctuation is not allowed except for periods, hyphens, and underscores.'),
  '#required' =&gt; TRUE,
);


but i don't know how to show last name field in default user registration form?
I would use the content profile module, you can add new fields to a users profile just like how you use cck to add new fields to a node. There is a configuration option where you can then set which fields you want displayed on the registration form.