I am trying to create a module where the users creates his account and on submit, i get his information and insert them in a second database too.
I mean that he will exist in both databases and in Drupals user table and in user table of the other database.
How can i get his information and insert them to a custom database?
I am totally new to Drupal development.
Thank you in advance for any help or advice.
You will need to implement hook_form_alter() and use the following code:
Then create the custom submit callback to manipulate the submitted values the way you like:
Hope this works… Muhammad.