Hvad sker der her=??
Hvis man byder over 9, skriver den at man ikke har råd...--------------
<%
Set bc = Server.CreateObject(\"MSWC.BrowserType\")
Set DB = Server.CreateObject(\"ADODB.Connection\")
DB.ConnectionString = \"Driver={Microsoft Access Driver (*.mdb)};\" & \"DBQ=d:webs\\hejhejhejhej.dk\\access\\db.mdb;\" & \"DefaultDir=d:webs\\mote.dk\\access\\;\" & \"FIL=MS Access;\"
DB.Open
idd = request(\"id\")
SQL = \"select * from auktion where id = \" & idd & \"\"
Set RS = Server.CreateObject(\"ADODB.Recordset\")
RS.Open SQL, DB, 3, 3
%>
<html>
<head>
<meta http-equiv=\"Content-Language\" content=\"da\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-1252\">
<meta name=\"GENERATOR\" content=\"Microsoft FrontPage 4.0\">
<meta name=\"ProgId\" content=\"FrontPage.Editor.Document\">
<title>Auktion</title>
</head>
<body>
<%
\'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
If Request(\"byd\") = \"ja\" THEN
If Request.form(\"bud\") < RS(\"bud\") OR Request.form(\"bud\") = RS(\"bud\") THEN
%>
<p align=\"center\"><font size=\"2\" face=\"Arial\" color=\"#FF0000\"><b>Du skal byde over <%=RS(\"bud\")%>!</b></font></p>
<%
else
RS(\"bud\") = Request.form(\"bud\")
RS(\"byder\") = request.cookies(\"login\")(\"navn\")
RS.Update
%>
<SCRIPT language=\"JavaScript\">
void(opener.parent.main.location.href=\'index.asp\');
</SCRIPT>
<SCRIPT language=\"JavaScript\">
self.close()
</SCRIPT>
<%
END IF
End if
%>
<form method=\"POST\" action=\"byd.asp?byd=ja&id=<%= request(\"id\") %>\" onsubmit=\"return FrontPage_Form1_Validator(this)\" name=\"FrontPage_Form1\">
<p align=\"center\"><font size=\"4\" face=\"Arial\"><u><b>BYD</b></u></font></p>
<p align=\"center\" style=\"word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0\"><font size=\"2\" face=\"Arial\">Du
byder på følgende vare: <font color=\"#008000\"><%= RS(\"ting\")%></font></font></p>
<p align=\"center\" style=\"word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0\"><font size=\"2\" face=\"Arial\">Det
højeste bud er: <font color=\"#800000\"><%= RS(\"bud\")%></font></font></p>
<p align=\"center\" style=\"word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0\"><font face=\"Arial\" size=\"2\"><b>Hvad vil du byde?</b></font></p>
<h4 align=\"center\" style=\"word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0\"><!--webbot
bot=\"Validation\" S-Data-Type=\"Integer\" S-Number-Separators=\"x\"
B-Value-Required=\"TRUE\" I-Minimum-Length=\"1\"
S-Validation-Constraint=\"Greater than\" S-Validation-Value=\"0\" --><input type=\"text\" name=\"bud\" size=\"11\">@$</h4>
<h4 align=\"center\" style=\"word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0\"> </h4>
<h4 align=\"center\" style=\"word-spacing: 0; line-height: 100%; margin-top: 0; margin-bottom: 0\"><input type=\"submit\" value=\"Send\" name=\"B1\"><input type=\"reset\" value=\"Nulstil\" name=\"B2\"></h4>
</form>
<SCRIPT language=\"JavaScript\">
document.FrontPage_Form1.bud.focus();
</SCRIPT>
</body>
</html>