I have simplified my code to what is below, I am trying to have nested if statements. You can see that I have 3 levels basically. I have the end if statements for each block of if statements, but I think that the server is still reading them as one if statement. I have tried {}, but asp does not like those. Any suggestions would be appreciated.
Thanks,
Travis
******
*code*
******
if ( username = "" Or password = "" ) then
%>
<h3>Unauthorized Access You Must Login</h3><br>
<%
else if ( pass <> password ) then
%>
<h3>Invalid Username or Password</h3><br>
<%
else if ( uAccess = "admin" ) then
%>
<h3>Admin</h3><br>
<%
elseif ( uAccess = "user" ) then
%>
<h3>User</h3><br>
<%
else
%>
<h3>Guest</h3>
<%
end if
end if
end if
Thanks,
Travis
******
*code*
******
if ( username = "" Or password = "" ) then
%>
<h3>Unauthorized Access You Must Login</h3><br>
<%
else if ( pass <> password ) then
%>
<h3>Invalid Username or Password</h3><br>
<%
else if ( uAccess = "admin" ) then
%>
<h3>Admin</h3><br>
<%
elseif ( uAccess = "user" ) then
%>
<h3>User</h3><br>
<%
else
%>
<h3>Guest</h3>
<%
end if
end if
end if