Your trying to call server side code from the client side try this instead:
Code:
<%@ Language=VBScript %>
<HTML>
<HEAD>
<link rel="home" href=http://www.egain.com>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<SCRIPT Language=VBScript>
Sub too
window.alert(Request.Form("name"))
End Sub
</SCRIPT>
</HEAD>
<BODY>
<form name="userinfo" action="chap3RequestObj.asp" method="post">
<center>
Fill the Form
Name:<input type="text" name="name"> <br>
Email:<input type="text" name="email"> <br>
<input type=reset value=Reset>
<input type=submit value=Submit onclick="too">
<P> </P>
</form>
Name:<%=Request.Form("name") %> <br>
EMail:<%=Request.Form("email") %>
</BODY>
</HTML>