Relative Content

Tag Archive for node.jsexpressejs

How to create a item in the Todo list

When you make a new item on the todo list it makes a new row but when you make a second one instead of making a new item on the todo list it changes the previous one. How would you go around making a new item on the list?

Issue with underfined post – undefined pokemon added to cards table

Im creating a crud web app for university using nodejs express mysql. I’ve created an api that will allow me to get data from my database, which seems to be working fine. But when handling POST requests, all I am getting is undefined input and returned to the database whenever I am on the main.js, using a form to handle this on an ejs page. I’ve checked the POST in postman and this method seems to work fine so im not sure where im going wrong.