So I am making this for that asks people to select one option from a `<select>` element and I want to store their response in MongoDB. I am using ExpressJs for this and so I need to pass this data through a GET request to the server when the submit button is pressed. on the server-side ill use the` body-parser` to give me an object, Will this object contain a key-value pair for the select element also like it does for other input elements like textboxes?
@SempervivumDec 13.2019 — #I don't know about ExpressJs or body-parser but when using a form in plain HTML and PHP on the server a select doesn't behave different from any other input element. Therefore I'm fairly shure that it will work with the tools/librarys you are using.
reply?
×
Success!
Help @parthpant spread the word by sharing this article on Twitter...