title: How do i send data from html to mongodb?
body: <p>I am using node js with express and Mongo. I have a simple program that takes in user settings through radio buttons. I have a submit button but I do not know how to make it work from there. Do I need a new JS file to send it to mongodb?  All I want is for my html to save the preferences and store them to the database. What steps do I start going in?</p>
  
  <p>Example here:
  if I clicked male and hit submit, I would want the word male to save to the database.</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
        &lt;form action=""&gt;
          &lt;input type="radio" name="sex" value="male"&gt;Male&lt;br&gt;
          &lt;input type="radio" name="sex" value="female"&gt;Female
        &lt;/form&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>