Skip to content
Advertisement

How to get the value of selected option in html using find() in Node.js Express and mongodb

I’m trying to get a specific document in mongodb and I’m using find(). the problem is that it doesn’t give me the result that I’m looking for in the html file (for example: i choose MALE and XL which I know I have in my database). what I get is:

*I have that kind of null document, but it’s not what I asked for.

The HTML file:

The node.js file:

Advertisement

Answer

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement