I am very new to internet development, so please bear with me.

There are 3 forms: form1, form2, and report1.

On form1, I have two buttons, button1 and button2.

When you select either of these buttons you are sent to form2.

On form2, there is vbScript to determine which button was selected to determine what is going to happen next. The code to determine which button was selected is not right. How do I fix this?

if session("CurrentAppl") = "Session1" then
temp = UpdateInetBankingInfo() 'Updates info submitted on form1

if Request.Form("button2") = clicked then
Response.Redirect ("report1.asp")
end if
end if