Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
if request("submit")="Add Record" then
'assuming connstr is your connection string
set conn=CreateObject("ADODB.Connection")
conn.open(connstr)
sql="insert into tblname (field1,field2) values ('"&request("text1")&"','"&request("text2")&"')"
conn.execute(sql)
conn.close
set conn=nothing
response.redirect("thankyou.asp")
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Insert Record</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form name="form1" method="post" action="insert.asp">
<p>
<input name="text2" type="text" >
</p>
<p>
<input name="text2" type="text">
</p>
<p>
<input type="submit" name="Submit" value="Add Record">
</p>
</form>
</body>
</html>