title: How to send array as req.body on node js source?
body: <p>I've got a question.</p>
  
  <p>I want to post some "array value" to "data.js".</p>
  
  <p>which likes </p>
  
  <pre><code>router.post('/insertinfo', function(req,res,next){
  
      var gender = req.body.gender;
      var age = req.body.age;
      var data_no= req.params.data_no;
      var dataSub_no = req.body.dataSub_no;
  </code></pre>
  
  <p>But I don't know how to use array in req.body.dataSub_no..</p>
  
  <p>Cause Array should be like this a[0],a[1],a[2].... etc.</p>
  
  <p>How to get it? req.body.dataSub_no[0]? I don't think It's correct.</p>
  
  <p>Here is "data.ejs"</p>
  
  <p>The code is</p>
  
  <pre><code>&lt;%
     var idxin=[];
   for(i=x; i&lt;row.length; i++)
   {
      x=i;
      var oneItem = row[i];
  
      if(oneItem.dataSub_no==twoItem.dataSub_no)
      {   
  %&gt;
  
  **&lt;input type="radio" name="&lt;%=oneItem.dataSub_no%&gt;" id="&lt;%=oneItem.dataChoice_no%&gt;" value="&lt;%=oneItem.dataChoice_no%&gt;" ""&gt;&lt;%=oneItem.dataChoice_content%&gt;&lt;%=oneItem.dataSub_no%&gt;&lt;/input&gt;**
  
  
      &lt;%}
      if(oneItem.dataSub_no != twoItem.dataSub_no) break;
   }
      }
  %&gt;
  
      &lt;input type="submit" value="submit"&gt;
  </code></pre>