jeg har indtil videre kun alvet den her kode:
<%
' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit.
On Error Resume Next
Session("FP_OldCodePage") = Session.CodePage
Session("FP_OldLCID") = Session.LCID
Session.CodePage = 1252
Session.LCID = 1030
Err.Clear
strErrorUrl = "error.asp"
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
If Request.Form("VTI-GROUP") = "0" Then
Err.Clear
Set fp_conn = Server.CreateObject("ADODB.Connection")
FP_DumpError strErrorUrl, "Cannot create connection"
Set fp_rs = Server.CreateObject("ADODB.Recordset")
FP_DumpError strErrorUrl, "Cannot create record set"
fp_conn.Open Application("Database1_ConnectionString")
FP_DumpError strErrorUrl, "Cannot open database"
fp_rs.Open "tblUsers", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic,
adCmdTable
FP_DumpError strErrorUrl, "Cannot open record set"
fp_rs.AddNew
FP_DumpError strErrorUrl, "Cannot add new record set to the database"
Dim arFormFields0(6)
Dim arFormDBFields0(6)
Dim arFormValues0(6)
arFormFields0(0) = "T2"
arFormDBFields0(0) = "PWD"
arFormValues0(0) = Request("T2")
arFormFields0(1) = "C2"
arFormDBFields0(1) = "ENABLED"
arFormValues0(1) = Request("C2")
arFormFields0(2) = "T3"
arFormDBFields0(2) = "Email"
arFormValues0(2) = Request("T3")
arFormFields0(3) = "T4"
arFormDBFields0(3) = "NOTES"
arFormValues0(3) = Request("T4")
arFormFields0(4) = "T1"
arFormDBFields0(4) = "NAME"
arFormValues0(4) = Request("T1")
arFormFields0(5) = "C1"
arFormDBFields0(5) = "ADMIN"
arFormValues0(5) = Request("C1")
FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0
fp_rs.Update
FP_DumpError strErrorUrl, "Cannot update the database"
fp_rs.Close
fp_conn.Close
Session("FP_SavedFields")=arFormFields0
Session("FP_SavedValues")=arFormValues0
Session.CodePage = Session("FP_OldCodePage")
Session.LCID = Session("FP_OldLCID")
Response.Redirect "confirmation page.asp"
End If
End If
Session.CodePage = Session("FP_OldCodePage")
Session.LCID = Session("FP_OldLCID")
%>
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Welcome to ThE</title>
</head>
<body text="#FF0000" bgcolor="#000000">
<p align="center">Register here</p>
<form method="POST" action="--WEBBOT-SELF--" name="register">
<!--webbot bot="SaveDatabase" suggestedext="asp"
u-asp-include-url="_fpclass/fpdbform.inc" s-dataconnection="Database1"
s-recordsource="tblUsers" u-database-url="_private/logon.mdb"
u-confirmation-url="confirmation page.asp" u-validation-error-url="error.asp"
s-form-fields="T2 C2 T3 T4 T1 C1" s-form-dbfields="PWD ENABLED Email NOTES
NAME ADMIN" startspan --><input TYPE="hidden" NAME="VTI-GROUP"
VALUE="0"><!--#include file="_fpclass/fpdbform.inc"--><!--webbot
bot="SaveDatabase" endspan i-checksum="40548" --><p align="center">
Username*:<input type="text" name="T1" size="20"></p>
<p align="center">Password*:<input type="password" name="T2" size="20"></p>
<p align="center">Email*:
<input type="text" name="T3" size="20"></p>
<p align="center">Notes*:
<input type="text" name="T4" size="20"></p>
<p align="center"><input type="checkbox" name="C1" value="ON">Accept*</p>
<p align="center"><input type="checkbox" name="C2" value="ON">No spam and
warez*</p>
<p align="center">*Recuired</p>
<p align="center"><input type="submit" value="Submit" name="B1"></p>
</form>
<p align="center"> </p>
</body>
</html>
Hvad mangler der?????????
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials