classic asp multiple button click

Nard120

New Member
Help required!! I have 2 asp pages.
  • \[code\]Feedback_Administration_Update.asp\[/code\] and
  • \[code\]Feedback_Administration.asp\[/code\]
below page is \[code\]Feedback_Administration.asp\[/code\]\[code\]<form ACTION="Feedback_Administration_Update.asp" METHOD=POST NAME="form"> <input type="button" value="http://stackoverflow.com/questions/13820579/Submit" onclick="javascript:Checkit();" name="btnSubmit"> <input type="reset" value="http://stackoverflow.com/questions/13820579/Reset" onclick="javascript:document.location=location"> <input type="button" value="http://stackoverflow.com/questions/13820579/Send Response to Requester" name="btnSubmit" onclick="javascript:Checkit();"/></form>\[/code\]in \[code\]Feedback_Administration_Update.asp\[/code\]I am using following code \[code\]dim buttonPressedbuttonPressed=Request.Form("btnSubmit")select case buttonPressedcase "Submit"'update database code Response.Redirect "feedback_administration.asp?ID=" & regEx.Replace((request.form("ID")), "''") & "&lstPages=" & Trim(Request("lstPages")) & "&view=" & Request("view")& "&strSuccess1=" &"Success"case "Send Response to Requester"'mail task code End Select\[/code\]I am not sure why they are not working on clicking any button.when I click on submit the page, it should update the code when I click on submit \[code\]Send Response\[/code\] to \[code\]Requester\[/code\], it should send email.
 
Back
Top