How can I theme profile field forms in an HTML table? I put this code in Drupal 6, and made a template file called "user-register.tpl.php" to override the default registration page.

function my_theme_theme(){
  return array(
    'user_register' =&gt; array(
      'arguments' =&gt; array('form' =&gt; NULL),
      'template' =&gt; 'user-register',
    ),
  );
}


With this, I could print profile user name, email and password.

&lt;?php print drupal_render($form['account']['name']); // prints the username field ?&gt;
&lt;?php print drupal_render($form['account']['mail']); // print the email field ?&gt;
&lt;?php print drupal_render($form['account']['pass']); // print the password field ?&gt;


This code doesn't print the profile field form.

&lt;?php print drupal_render($form['profile_category_name']['profile_field_name'] ); ?&gt;


Ideally I would like to print the form itself separately from the title, and the description so that I can arrange them with &lt;table&gt; tags.
I found out why it didn't work. Because my category name was not ASCII characters and it now works after changing them to ASCII characters with the code above.