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"%>
<%
Dim MM_MYSQL_STRING
MM_MYSQL_STRING = "driver={MySQL ODBC 3.51 Driver}; database=DB_NAME;server=server_NAME;uid=user;pwd=pass;option=16386;"
%>
<%
if(Request.Form("tfUSERNAME") <> "") then Command1__varUser = Request.Form("tfUSERNAME")
if(Request.Form("tfNAME") <> "") then Command1__varName = Request.Form("tfNAME")
%>
<%
set Command1 = Server.CreateObject("ADODB.Command")
Command1.ActiveConnection = MM_MYSQL_STRING
Command1.CommandText = "INSERT INTO database_name.table_name(Field1,Field2) VALUES ('" + Replace(Command1__varUser, "'", "''") + "','" + Replace(Command1__varName, "'", "''") + "') "
Command1.CommandType = 1
Command1.CommandTimeout = 0
Command1.Prepared = true
Command1.Execute()
set Command1= Nothing
%>
<html>
<head>
<title>MySQL Insert </title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form action="MySQL1.asp" name="form1">
<p>UserName:
<input name="tfUSERNAME" type="text" id="tfUSERNAME">
</p>
<p>Name:
<input name="tfNAME" type="text" id="tfNAME">
</p>
<p>
<input type="submit" name="Submit" value="Submit">
<input type="reset" name="Submit2" value="Reset">
</p>
</form>
</body>
</html>