title: classic asp multiple button click
body: <p>I have 2 asp pages.</p>
  
  <ul>
  <li>Feedback_Administration_Update.asp</li>
  <li>Feedback_Administration.asp</li>
  </ul>
  
  <p>My HTML form:</p>
  
  <pre><code>&lt;form ACTION="Feedback_Administration_Update.asp" METHOD=POST NAME="form"&gt;
    &lt;input type="button" value="Submit" onclick="javascript:Checkit();" name="btnSubmit"&gt;
    &lt;input type="reset" value="Reset" onclick="javascript:document.location=location"&gt;
    &lt;input type="button" value="Send Response to Requester" name="btnSubmit" onclick="javascript:Checkit();"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>Code in Feedback_Administration_Update.asp file:</p>
  
  <pre class="lang-vbs prettyprint-override"><code>dim buttonPressed
  buttonPressed=Request.Form("btnSubmit")
  select case buttonPressed
      case "Submit"
          'update database code 
          Response.Redirect "feedback_administration.asp?ID=" &amp; regEx.Replace((request.form("ID")), "''") &amp; "&amp;lstPages=" &amp; Trim(Request("lstPages")) &amp; "&amp;view=" &amp; Request("view")&amp; "&amp;strSuccess1=" &amp;"Success"
      case "Send Response to Requester"
          'mail  task code 
  End Select
  </code></pre>
  
  <p>I am not sure why they are not working on clicking any button.</p>
  
  <p>When I click on submit the page, it should update the code, when I click on submit <em>Send Response to Requester</em>, it should send email.</p>