Submitting data from a form in Node.js is there a tutorial?

So I am building a project in node.js and creating a user registration form

Have all the form created and used a .php process as a guide.

I am using server connect form and not sure

But is there a Node.js set of instructions anywhere on how to create a form in node.js which then submits the contents to the database.

I have tried and not sure it is the same process as .php as there are a few differences and on submission I am getting a 500 error.

If there is an example or guide anywhere some one can point me to? I just need to check to see what I may be doing wrong :flushed:

The process is the same for all server models, there is nothing NodeJS specific. If you see an error 500, then please check the exact error message returned:

Thanks @Teodor seems to be related to my database connection issues.

What would this error mean?

It looks like there is an issues accessing port:172.23.0.2:9906

Which is the database port but I have all the settings and have the database working as expected on that port with the database connection as the first server action.

  1. {status: “500”, code: “ECONNREFUSED”, message: “connect ECONNREFUSED 172.23.0.2:9906”,…}
  2. code: “ECONNREFUSED”
  3. message: “connect ECONNREFUSED 172.23.0.2:9906”
  4. stack: “Error: connect ECONNREFUSED 172.23.0.2:9906↵ at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)”
  5. status: “500”