Hello

I need to do the user registration using php coding....i need to know how to do it, where do i need to insert user fields...because im doing the registration form with flash parsing all the data with xml...anyway i need to know how to do it and where do i need to insert each data...

In table users?....any other?.... how can i control the drupal errors using php?...i hope you can understand me...sorry my bad englsh.

Comments

nevets’s picture

You could call user_save().

jaydubb181’s picture

You could do a hook_form_alter http://api.drupal.org/api/function/hook_form_alter/6 on the user_login form to add the fields then do a user_save() http://api.drupal.org/api/function/user_save/6 to save the data...be careful with user_save though, all of the data that you save with user_save gets serialized and stored as part of the $user object.