I have a form and part of it asks the user if they are male or female. Here is the html,
<form role="form" id="createAccountForm" action="CAform" method="POST">
.
.
.
.
<div class="form-group" id="gender">
<label class="radio-inline"><input type="radio" name="optradio" value="1">Male</label>
<label class="radio-inline"><input type="radio" name="optradio" value="0">Female</label>
</div>
.
.
.
</form>
and on the server (a node server with express framework), I want to know how to access the gender value when the user submits the form. Can you do it with body-parser?
req.body.optradio