I hope the below code helps.
<%
If Request("num_student") = "1" Then
Response.Write "Number of student button was clicked."
' add your other script here
else
Response.Write "Number of teacher button was clicked."
' add your other script here
End If
%>
<form name="form1" action="" method="post">
<input type="hidden" name="num_student" value="1">
<input type="submit" value="Number of Student">
</form>
<form name="form2" action="" method="post">
<input type="hidden" name="num_teacher" value="1">
<input type="submit" value="Number of teacher">
</form>
*******************************************************
hi zippee!
its great, although the sample code is simple but good enough to understand and manipulate...thanks a lot for that one.