If I want to insert form data in to the "customer_entity" table How can we achieve that?

I have mentioned all fields in the form as "create an account", and rather than creating a new table in the database I want to insert the data in the Magento's core customer table.

Thanks for help in advance !!

  • Can you describe your requirement in detail what you are looking for? Oct 23, 2021 at 6:58
  • I have created a form in the custom module with the same fields as create account form has, the issue is I want to add data of custome module form data in the table where "create account" form data is getting stored (the dB table remain the same for custom form and create and account form)! that's how I want Oct 23, 2021 at 7:22

1 Answer 1


You need to do the following things.

  1. When that data post, you need to create customer programmatically so you do not want to make the entry manually on the relevant table.

To create customer programmatically, you can read this article : https://magecomp.com/blog/create-customer-programmatically-magento-2/

  • this is without creating the new form new customer data can be added! right? Oct 23, 2021 at 11:40
  • Yes, you can take the data from your form and pass the respective data on your code and you will able to do that one. Oct 23, 2021 at 11:41
  • ok ! got it, I'll try this way, thanks!! Oct 23, 2021 at 11:45
  • If Answer help then upvote and mark as solution so it will help other in community. Oct 23, 2021 at 11:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.