Edit.asp:
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("profiles.mdb")
id = session("brugerid")
Button1Caption = "Add profile"
Button1Name = "Create"
Button2Caption = ""
Button2Name = ""
title = ""
pagetitle = "Add your profile"
pageheading = "Add your profile"
username = Request.Cookies("LoginName")("name")
homepage = "
http://"if request("Action")="Edit" then
SQL = "SELECT * FROM AdminInfo WHERE ID=" & id
Set RS = Conn.Execute(SQL)
username = RS("username")
birthdate = RS("birthdate")
homepage = RS("homepage")
uin = RS("uin")
icqnotes = RS("icqnotes")
picture = RS("picture")
pwidth = RS("pwidth")
pheight = RS("pheight")
pcomments = RS("pcomments")
location = RS("location")
pc_specs = RS("pc_specs")
rank = RS("rank")
pass = RS("pass")
pass2 = RS("pass")
level = RS("level")
ID = RS("ID")
pageheading = "Edit your profile"
pagetitle = "Edit your profile"
Button1Caption = "Apply changes"
Button1Name = "Edit"
Button2Caption = "Delete your profile"
Button2Name = "Delete"
end if
%>
<html>
<head>
<title><%=pagetitle%></title>
</head>
<style TYPE="text/css">
<!--
A:link {text-decoration: none}
A:visited {text-decoration: none}
A:active {text-decoration: none}
A:hover {color:#EEEEEE; text-decoration: none}
-->
</style>
<body BGCOLOR="#FFFFFF" LINK="#C3C3C3" VLINK="#C3C3C3" ALINK="#FF0000" TEXT="#000000" topmargin="0" leftmargin="0">
<table border="0" cellspacing="0" cellpadding="0" align="center">
<tr bgcolor="#000000">
<td width="30" bgcolor="#000000"><img src="images/left_corner.gif" width="30" height="30"></td>
<td bgcolor="#000000"><font face="Verdana" size="2" color="#BEBEBE"><strong><%=pageheading%><%=Request("msg")%></strong></font></td>
<td width="30" bgcolor="#000000"><img src="images/right_corner.gif" width="30" height="30"></td>
</tr>
<tr>
<td width="30" height="20"></td>
<td></td>
<td width="30"></td>
</tr>
<tr>
<td width="30"></td>
<td><form method="POST" action="action.asp">
<input type="Hidden" name="ID" value="<%=ID%>">
<table border="0" cellspacing="0" cellpadding="3">
<tr>
<td colspan="2"><font face="Verdana" size="2"><strong>Profile settings:</strong></font><br><hr size="2" color="#000000"></td>
</tr>
<tr>
<td colspan="2" height="10"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Name: </font></td>
<td><input type="text" name="username" size="30" value="<%=username%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Birthdate: (dd-mm-yy) </font></td>
<td><input type="text" name="birthdate" size="10" value="<%=birthdate%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Location: (town, part) </font></td>
<td><input type="text" name="location" size="30" value="<%=location%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">UIN: </font></td>
<td><input type="text" name="uin" size="10" value="<%=uin%>"></td>
</tr>
<tr>
<td valign="top"><font face="Verdana" size="2">ICQ notes: </font></td>
<td><textarea cols="30" rows="4" name="icqnotes"><%=icqnotes%></textarea></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Email: </font></td>
<td><input type="text" name="homepage" size="30" value="<%=homepage%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Picture: (filename) </font></td>
<td><input type="text" name="picture" size="20" value="<%=picture%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Picture dimensions: </font></td>
<td><input type="text" name="pwidth" size="3" value="<%=pwidth%>"> x <input type="text" name="pheight" size="3" value="<%=pheight%>"></td>
</tr>
<tr>
<td valign="top"><font face="Verdana" size="2">Picture comments: </font></td>
<td><textarea cols="30" rows="4" name="pcomments"><%=pcomments%></textarea></td>
</tr>
<tr>
<td valign="top"><font face="Verdana" size="2">PC specs: </font></td>
<td><textarea cols="30" rows="10" name="pc_specs"><%=pc_specs%></textarea></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Rank: </font></td>
<td><input type="text" name="rank" size="30" value="<%=rank%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Password: </font></td>
<td><input type="text" name="pass" size="30" value="<%=pass%>"></td>
</tr>
<tr>
<td><font face="Verdana" size="2">Password: </font></td>
<td><input type="text" name="pass2" size="30" value="<%=pass%>"></td>
</tr>
<tr>
<td></td>
<td><input type="hidden" name="level" size="30" value="<%=level%>"></td>
</tr>
<tr>
<td height="20"></td>
<td></td>
</tr>
<tr>
<td colspan="2"><hr size="2" color="#000000"></td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top"><input type="submit" value="<%=Button1Caption%>" name="<%=Button1Name%>"><%if Button2Caption <> "" then%> <input type="submit" value="<%=Button2Caption%>" name="<%=Button2Name%>"><%end if%></td>
</tr>
</table>
</form>
</td>
<td width="30"></td>
</tr>
</table>
<p> </p>
</body>
</html>