Jeg har ændret menu til MENU, men der sker ikke noget... Jeg har lagt fra.... til... altmuligt.... forskellige errors - nogle gange går den bare igennem (signin.asp afvikles uden errors), men uden at ændre MENU...
Jeg har lidt svært ved at holde overblikket lige nu....
...............................................................................
Jeg har lagt siderne ud på nettet
http://www.nanaza.com/workgroup/dkl/ men som sagt kommer fejlmeddelelsen, at der er "fejl i conn.asp - linie 6." Linie 6 er "%>", og jeg har rodet med det problem tidligere... Jeg kom frem til, at det jo er conn.asp der korresonderer med databasen og eftersom der ikke understøttes Microsoft Database Access på dét webhotel, så er det sikkert derfor.
Den går jo også bare igennem nu, når jeg arbejder og tester siden fra wwwroot - så jeg bekymrer mig ikke om conn.asp...
.............................................................................
Det virkede ikke som om TARGET havde noget med det at gøre. Jeg slettede det og prøvede - ingen ændring...
...............................................................................
Jeg ved ikke rigtig, hvad jeg skal gøre... Signin.asp ser sådan ud:
<%
Option Explicit
Dim sql,rsUser,username,password,page,stayloggedin,LConnectString,lconn,sqlflag
'Grab the submitted variables (page is the page they've come from, set by the hidden variable at the login box)
username = Request.Form("username")
password = Request.Form("password")
page = Request.Form("page")
stayloggedin = Request.Form("stayloggedin")
if page = "" then
page = "index.asp"
end if
'Check no s**t is trying to hack in using SQL commands
if InStr(username, "'") or InStr(username, """") or InStr(username, "=") or InStr(password, "'") or InStr(password, """") or
InStr(password, "=") then
sqlflag = True
end if
'Open connection
%>
<!--#include file="conn.asp"-->
<%
'Get a recordset corresponding to the submitted username and password
sql = "SELECT username FROM users WHERE username = '" & username & "' AND password = '" & password & "'"
Set rsUser = Server.CreateObject("ADODB.Recordset")
rsUser.Open sql, conn, 3, 3
'If there was a valid recordset there, then send them back to the page they came from, with the username cookie set
If (not rsUser.BOF) and (not rsUser.EOF) and sqlflag <> True then
Response.Cookies("username") = rsUser("username")
%>
Response.Write ("<script type=""text/javascript"">" & VbCrLf);
Response.Write ("window.open('menu2.asp','MENU');" & VbCrLf);
Response.Write ("</script>" & VbCrLf);
<%
'If the user wants to stay logged in all the time, then we'll set the cookie with a far-away expiry date
if stayloggedin = "yes" then
Response.Cookies("username").expires = #1/1/2010#
end if
rsUser.close
set rsUser = nothing
conn.close
set conn = nothing
Response.Redirect(page)
end if
'Otherwise, display an invalid entry screen
rsUser.close
set rsUser = nothing
conn.close
set conn = nothing%>
<html>
<head>
<title>Invalid entry</title>
</head>
<body bgcolor="#FFFFFF" link="#DD0000" vlink="#DD0000" alink="#000000" bgproperties="fixed"
background="../grafik/baggrund-light.jpg">
<font face="Verdana" size=2>
<h3>Forkert brugernavn/password</h3>
<p><a href="java script:self.history.go(-1)"><b>Forsøg venligst igen</b></a></p>
</font>
</body>
</html>
...............................................................................
index.html ser sådan ud nu:
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
<TITLE>De Konservatoriestuderendes Landsråd</TITLE>
<FRAMESET ROWS="*,442,*" FRAMESPACING="0" BORDER="0" FRAMEBORDER="0">
<FRAME SRC="frames/blackness_top.html" SCROLLING="no" BORDER="0" name="frame_top">
<FRAMESET COLS="*,740,*" FRAMESPACING="0" BORDER="0" FRAMEBORDER="0">
<FRAME SRC="frames/blackness.htm" SCROLLING="no" BORDER="0" name="frameL">
<FRAMESET ROWS="360,82" FRAMESPACING="0" BORDER="0" FRAMEBORDER="0">
<FRAME SRC="pages/forside.html" BORDER="0" NAME="MAIN">
<FRAME SRC="pages/menu.asp" SCROLLING="no" BORDER="0" NAME="MENU">
</FRAMESET>
<FRAME SRC="frames/blackness.htm" SCROLLING="no" BORDER="0" name="frameR">
</FRAMESET>
<FRAME scrolling="no" SRC="frames/blackness.htm" BORDER="0" name="frame_bund">
</FRAMESET>
<noframes></noframes> // --> </HEAD> <BODY BGCOLOR="BLACK">
</BODY>
</HTML>
...............................................................................
I just don't get it...... Points sættes til 150!!! Hjælp mig, please!!