Suttit Nu i ett jäkla tag men det vägrar funka
Jag är en nybörjare inom ASP + att jag har testar lite grejer i denna kod + att jag skulle börja snygga till den när jag fått allt å funka :)
Hjälp vore snällt
<% Response.Buffer = TRUE %>
<html>
<!-- #include virtual="/databas/adovbs.inc" -->
<%
Dim IDnum
Idnum = Request.QueryString("ID")
%>
<%
If Idnum2 = "" Then
Idnum2 = Idnum
End If
%>
<head>
<meta http-equiv="Content-Language" content="sv">
<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>MystiX Soccer System</title>
</head>
<body>
<p style="margin-top: 0; margin-bottom: 0"> </p>
<p style="margin-top: 0; margin-bottom: 0" align="center"><font face="Verdana">
MystiX Soccer System</font></p>
<p> </p>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="60%" height="206">
<tr><% =IDnum %><br>
<% =IDnum2 %>
<td width="17%" height="206" align="left" valign="top">
<p style="margin-top: 0; margin-bottom: 0"><font size="1" face="Verdana">
<p style="margin-top: 0; margin-bottom: 0"><font size="1" face="Verdana">
response.write "<a href='login.asp?ID=" & recset("ID") & "'> Account</a>"
<font color="#000000">Account Setup</font></a></font></p>
<p style="margin-top: 0; margin-bottom: 0"><font size="1" face="Verdana">
<a href="soccer.asp?ID=" & RecSet("ID")&soccer=predict">
<font color="#000000">New Predic</font></a></font></p>
<p> </td>
<% If Request.QueryString("soccer") = add Then %>
<%
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=c:\inetpub\wwwroot\asp\soccer\soccer.mdb"
Set RecSete = Server.CreateObject("ADODB.Recordset")
Visa = "SELECT * FROM users WHERE ID = " & Request.Form("ad") & " "
RecSete.Open Visa, Connect, adOpenStatic, adLockOptimistic
%>
<%
RecSete("Name") = Request.Form("Name")
RecSete("Email") = Request.Form("Email")
RecSete("Password") = Request.Form("Password")
RecSete.Update
RecSete.Close
Connect.Close
End If
%>
<%
If Session("Admin") = "" Then
Response.Redirect "adminsite.htm"
End If
If Request.QueryString("soccer") = "account" Then
Dim Idnum2
Idnum2 = Request.QueryString("ID")
Set Connect = Server.CreateObject("ADODB.Connection")
Connect.Open "driver={Microsoft Access Driver (*.mdb)};dbq=c:\inetpub\wwwroot\asp\soccer\soccer.mdb"
Set RecSet = Server.CreateObject("ADODB.Recordset")
Updater = "SELECT * FROM users WHERE ID = " & Trim(Request.QueryString("ID")) & " "
RecSet.Open Updater, Connect, adOpenStatic, adLockOptimistic
%>
\<td width="55%" height="206" align="left" valign="top"\>
\<form method="POST" action="soccer.asp?ID=\<% =Request.Form("ad") %\>&soccer=add" onsubmit="return FrontPage_Form1_Validator(this)" language="JavaScript" name="FrontPage_Form1"\>
\<p style="margin-top: 0; margin-bottom: 0"\> \</p\>
\<input type="hidden" name="AD" value="\<% =Idnum2 %\>"\>
\<p style="margin-top: 0; margin-bottom: 0"\>Name\</p\>
\<p style="margin-top: 0; margin-bottom: 0"\>
\<!--webbot bot="Validation" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="100" --\>\<input type="text" name="Name" Value="\<% =RecSet("Name") %\>" size="20" maxlength="100"\>\</p\>
\<p style="margin-top: 0; margin-bottom: 0"\>Email:\</p\>
\<p style="margin-top: 0; margin-bottom: 0"\>
\<!--webbot bot="Validation" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="100" --\>\<input type="text" name="Email" Value="\<% =RecSet("Email") %\>" size="20" maxlength="100"\>\</p\>
\<p style="margin-top: 0; margin-bottom: 0"\>Password\</p\>
\<p style="margin-top: 0; margin-bottom: 0"\>
\<!--webbot bot="Validation" b-value-required="TRUE" i-minimum-length="1" i-maximum-length="100" --\>\<input type="text" name="Password" Value="\<% =RecSet("Password") %\>" size="20" maxlength="100"\>\</p\>
\<p\>\<input type="submit" value="Save" name="B1"\>
\<input type="reset" value="Reset All" name="B2"\>\</p\>
\</form\>
</td>
<% End If %>
<td width="28%" height="206" align="left" valign="top"> </td>
</tr>
</table>
</body>
</html>