Trích:
<html>
<head>
<title>Registration</title>
</head>
<body>
<form method="POST" action="RegistrationProcess.asp">
<p> Username: <input type="text" name="username" ></p>
<p> Password: <input type="password" name="password" ></p>
<p> Confirm Password: <input type="password" name="ConfirmPassword"
></p>
<p> Address: <input type="text" name="address"></p>
<p><input type="submit" value="Submit" name="submit"></p>
</form>
</body>
</html>
FILE CONNECTION >>>>>>>
Trích:
<!--#include file ="Connection.asp"-->
<%
username=request.form("username")
password=request.form("password")
confirmPassword=request.form("confirmPassword")
address=request.form("address")
'validate some information retrieved from submitted form'
sql="insert into tblUser([username],[password],[address])values('&username&','&password&','&address&')"
response.write "Successful Registration!"
%>