title: Undefined is returned from appended array
body: <p>I currently POST to my script:</p>
  
  <pre><code>process : edit
  r1_person : 00008
  r2_person : 00009
  persons : 2
  </code></pre>
  
  <p>Which my script accepts:</p>
  
  <pre><code>    if (process == 'edit') {
          var persons_array = [];
          for (i = 0; i &lt; persons; i++) {
              var test_push = pnvl(request.getParameter('r' + i + '_person'))
              persons_array.push(test_push);
              response.write(persons_array[i] + '\n');
          }
      }
  </code></pre>
  
  <p>I get back:</p>
  
  <p>undefined
  undefined</p>
  
  <p>Where am I going wrong?</p>
  
  <p>EDIT:</p>
  
  <p>Solution: response.write() will not return correctly inside a for loop.</p>