<% @LANGUAGE = VBScript %>
<%Option Explicit%>
dim objConn, strSQL, value1, value2, value3, totalvalue
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Provider = "Microsoft.Jet.OLEDB.4.0"
objConn.Open "yourpath\yourdatabase.mdb"
value1 = trim(Request.Form("data1"))
value2 = trim(Request.Form("data2"))
value3 = trim(Request.Form("data3"))
totalvalue = value1 + value2 + value3
strSQL = "Insert into yourtable (value1, value2, value3, totalvalue) values (" & value1 & "," & value2 & "," & value3 & "," & totalvalue & ")"
objConn.Execute strSQL
<html>
<head>
<title>collect form data</title>
</head>
<body>
<form name="form1" action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method="post">
<input type="text" name="data1">
<input type="text" name="data2">
<input type="text" name="data3">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>
<%Option Explicit%>
dim objConn, strSQL, value1, value2, value3, totalvalue
Set objConn = Server.CreateObject("ADODB.Connection")
objConn.Provider = "Microsoft.Jet.OLEDB.4.0"
objConn.Open "yourpath\yourdatabase.mdb"
value1 = trim(Request.Form("data1"))
value2 = trim(Request.Form("data2"))
value3 = trim(Request.Form("data3"))
totalvalue = value1 + value2 + value3
strSQL = "Insert into yourtable (value1, value2, value3, totalvalue) values (" & value1 & "," & value2 & "," & value3 & "," & totalvalue & ")"
objConn.Execute strSQL
<html>
<head>
<title>collect form data</title>
</head>
<body>
<form name="form1" action="<%=Request.ServerVariables("SCRIPT_NAME")%>" method="post">
<input type="text" name="data1">
<input type="text" name="data2">
<input type="text" name="data3">
<input type="submit" name="Submit" value="Submit">
</form>
</body>
</html>