Forums
This topic is locked
IF statment Problem......
Posted 12 Oct 2004 09:50:27
1
has voted
12 Oct 2004 09:50:27 Tommy Ready posted:
I've been programming in Visual Basic for like 3 yrs now, so I know it farely well....and well I have this code that looks 100% accurate to me, but maybe I'm missing something. Can someone take a look at this code and tell me if you see any errors?--------------------Code in VBScript------------
<%
Dim usrLevel
If session("logged_in"

usrLevel = session("usrLevel"

'Now we check to see what the users level is so we know what nav bar to display
If usrLevel = "administrator" Then %>
<!-- #BeginLibraryItem "/Library/adminNavBar.lbi" --><font color="#FF6633" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><em>Forum
Post | Download Post | Images | Profile | Admin
Panel | Log Out </em></strong></font><!-- #EndLibraryItem -->
<% Else %>
<!-- #BeginLibraryItem "/Library/usrNavbar.lbi" --><font color="#FF6633" size="1" face="Verdana, Arial, Helvetica, sans-serif"><strong><em>Forum
Post | Download Post | Images | Profile | Log
Out </em></strong></font><!-- #EndLibraryItem -->
<% End If
End If
%>
Its a very simple statment...first it checks if the user is logged in...then it checks to see what user Level there are on....if they aren't logged in at all the space should be blank....but I get this error:
Microsoft VBScript compilation error '800a03f6'
Expected 'End'
/main.asp, line 148
But I closed both my IF statments so I don't understand....help plz....
Dreamweaver MX | Flash 5/MX | Visual Studio 6.0 | Visual Studio .NET
Replies
Replied 12 Oct 2004 09:54:49
12 Oct 2004 09:54:49 Tommy Ready replied:
NEVERMIND.....I FOUND IT....DELETE THIS POST PLEASE...................
Dreamweaver MX | Flash 5/MX | Visual Studio 6.0 | Visual Studio .NET
Dreamweaver MX | Flash 5/MX | Visual Studio 6.0 | Visual Studio .NET