title: How do I pass a form value to different redirect pages?
body: <p>I just developed a platform that prints single ASP documents right after submitting an ID number using the form shown below:</p>
  
  <pre><code>&lt;form action="http://localhost/teg/f1.asp" method="POST"&gt;
          &lt;input type="number" name="number" placeholder="Please Enter ID" /&gt;
          &lt;button type="submit"&gt;Print&lt;/button&gt;        
  &lt;/form&gt;
  </code></pre>
  
  <p>In this case it's printing a document called f1.asp. However, I also have f2.asp so instead of writing the form twice for two separate fields I decided to write the form once and include a drop-down list that lets the user choose what to print but for this I guess I needed another page which I called redirect. The form changes look as follows:</p>
  
  <pre><code>&lt;form action="http://localhost/teg/redirect.asp" method="POST" id="new"&gt;
          &lt;input type="number" name="number" placeholder="Please Enter ID" /&gt;
          &lt;button type="submit"&gt;Print&lt;/button&gt;        
  &lt;/form&gt;
  &lt;label&gt; Type &lt;/label&gt;
  &lt;select name="list" form="new"&gt;
  &lt;option value="1"&gt;f1&lt;/option&gt;
  &lt;option value="2"&gt;f2&lt;/option&gt;  
  &lt;/select&gt;
  </code></pre>
  
  <p>And the redirect ASP page looks: </p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;%            
      Dim list
      list = request.form("list")
  If list=1 Then response.redirect("f1.asp") Else If list=2 Then      response.redirect("f2.asp") End If
   %&gt;
  </code></pre>
  
  <p>
  </p>
  
  <p>Finally, when clicking on Print using the drop-down list it redirects perfectly but the value of "number" from the ID number field doesn't reach the document type selected by the user so the document is not displayed properly. Instead, the following Database Engine error appears: '80040e10'. Any help would be appreciated. </p>