Wendy Gibbons, I have a little knowledge about this:
but most of the tutorials I have found does the above.
What I wanna know if some new user with
enters his information in the html form,
then how can I pass that to mongodb.
Means, how can I pass this information through "doc" object
doc.put("name" , ???);
doc.put("surname" , ???);
doc.put("age" , ???);