This is classic ASP, not ASP.NET right? In that case, you're better off posting in one of the classic ASP forums in the ASP and ASP.NET category, listed here:
http://p2p.wrox.com/asp-net-asp-12
That said, what you're after is Request.Form(
ButtonName)
Give both buttons the same name, like this:
Code:
<form action="multibtn.asp" method="post">
<inut type="SUBMIT" value="One" name="SubmitButton">
<inut type="SUBMIT" value="Two" name="SubmitButton">
</form>
And then you can use this:
Code:
Dim buttonPressed
buttonPressed = Request.Form("SubmitButton")
Select Case buttonPressed
Case "One"
Response.Write "button 1 was clicked"
Case "Two"
Response.Write "button 2 was clicked"
End Select
HtH,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.