title: not getting the values by using request.getparameter
body: <p>On click <code>submit</code> I call this function:</p>
  
  <pre><code>function submitFunction()
  {
  
      document.forms[0].action = "Result.jsp";
  
      document.forms[0].method = 'GET';
  
      document.forms[0].submit();
  
  }
  </code></pre>
  
  <p>the data in <code>Result.jsp</code> is:</p>
  
  <pre><code>&lt;%
  out.println(request.getparameter("demo1")+"&lt;BR&gt;");
  out.println(request.getparameter("demo2")+"&lt;BR&gt;");
  out.println(request.getparameter("demo3")+"&lt;BR&gt;");
  out.println(request.getParameter("demo4")+"&lt;BR&gt;");  
  out.println(request.getParameter("demo5")+"&lt;BR&gt;");
  out.println(request.getParameter("demo6")+"&lt;BR&gt;");
  %&gt;
  </code></pre>
  
  <p>My Form:</p>
  
  <pre><code>&lt;form method="post" action="Result.jsp" &gt;
      &lt;h1&gt;Student Info&lt;/h1&gt;
      &lt;hr&gt;
      &lt;pre&gt;
          &lt;b&gt;Name&lt;/b&gt; :&lt;input id="demo1" type="text" value=" "/&gt;
      &lt;/pre&gt;
      &lt;pre&gt;
          &lt;b&gt;Age &lt;/b&gt; :&lt;input id="demo2" type="text" value=" "/&gt;
      &lt;/pre&gt;
      &lt;pre&gt;
          &lt;b&gt;Qualification&lt;/b&gt; :&lt;input id="demo3" type=isNaN value=" "/&gt;
      &lt;/pre&gt;
      &lt;pre&gt;
          &lt;b&gt;Address&lt;/b&gt; :&lt;input id="demo4" type="text" value=" "/&gt;
      &lt;/pre&gt;
      &lt;pre&gt;
          &lt;b&gt;Company Name&lt;/b&gt; :&lt;input id="demo5" type="text" value=" "/&gt;
      &lt;/pre&gt;
      &lt;pre&gt;
          &lt;b&gt;Height&lt;/b&gt; :&lt;input id="demo6" type="numeric" value=" " /&gt;
      &lt;/pre&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>please suggest solution for this</p>