...

View Full Version : [Problems] with Log In



vcp105
08-30-2005, 01:33 AM
I'm having problems with the log in feature of my site http://www.nevisbiz.com

Even after I log in - I still see the User ID and Password boxes in addition to the confirmation that the user is logged in.
Help!

NancyJ
08-30-2005, 09:21 AM
post some code ;)

What do you use to verify the user is logged in? Do you set any session variables?
around your login form you need
<% if session("loggedinvariable") <> "expected value" then %>
<!-- login form -->
<% end if %>

Bullschmidt
08-30-2005, 09:53 PM
Even after I log in - I still see the User ID and Password boxes in addition to the confirmation that the user is logged in.
It doesn't even sound like you're redirecting off of the login page after the user logs in.

And here's a related link I put together about logging in:

Classic ASP Design Tips - Login Page
http://www.bullschmidt.com/devtip-loginpage.asp

vcp105
08-30-2005, 10:47 PM
<form name="frmMemberLogin" method="post" action="<%=strPath%>chkmemberlogin.asp" onSubmit="return ValidateForm(this)">
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><img src="<%=strPath%>images/NBmember-login-new.gif"></td>
</tr>
<tr>
<td bgcolor="#FFCC00">
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="50"><img src="<%=strPath%>images/NBuser-id.gif"></td>
<td width="100"><input name="TR_UserID" type="text" class="inp" size="10" maxlength="50"></td>
<td width="60"><img src="<%=strPath%>images/NBpassword-new.gif"></td>
<td><input name="TR_Password" type="Password" class="inp" size="10" maxlength="20"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table class="text3" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>

<td width="65">
<input name="imageField" type="image" src="<%=strPath%>images/NBlogin-button.gif" border="0">
</td>

<td><a href="<%=strPath%>registration.asp" class="lnk">New Registration?</a>&nbsp;&nbsp;&nbsp;<a href="<%=strPath%>forgotpassword.asp" class="lnk">Forgot Password</a></td>
</tr>
</table></td>
</tr>
</table></form>

NancyJ
08-30-2005, 10:59 PM
that really doesnt tell us any more than we could ahve got from viewing your source code

vcp105
08-31-2005, 01:00 PM
<%set rsbanner=cnconn.execute("select * from nevis_top_banner where status =1 order by newID()")
if not rsbanner.eof then

topimage=rsbanner("banner")
topText=rsBanner("text")

topsite = Trim(rsBanner("site"))

if Instr(topsite,"http://") >0 then
strUrl = topsite
else
strUrl = "http://" & topsite
end if
End if
rsbanner.close
set rsbanner=nothing%><%if topimage<>"" then %>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<%ENd if%>
<style type="text/css">
<!--
.style1 {font-size: x-small}
-->
</style>

<a href="<%=strUrl%>"><img src="<%=strPath%>images/TopImages/<%=topimage%>" border="0" width="700" alt="<%=topText%>" height="90"></a>
<table width="90%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCC00">
<tr>
<td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="text2">
<tr>
<td colspan="2" valign="top"><table class=text3 width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%'THIS TD WILL HAVE A LOGIN AS WELL AS MYADMIN TAB%>
<%IF Session("UserName") = "" Then%>
<%else%>
<td>
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="right" valign="middle">
<%
if Session("MemberID") <> "" or Session("empID") <> "" then
if Session("FeaturedAgent") then %>
<a href="<%=strPath%>Agents/viewprofile.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<% elseif Session("FeaturedJobs") then
if session("Seeker") = "JS" then%>
<a href="<%=strPath%>JobSeekers/jobskeer-my-admin.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%elseif session("Employer") = "JE" then%>
<a href="<%=strPath%>JobsEmployer/my-admin.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%elseif session("Employer")="" and session("Seeker")="" then %>
<a href="<%=strPath%>Jobs/viewprofile.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%end if%>
<%elseif Session("FeaturedBusiness") then %>
<a href="<%=strPath%>Business/viewprofile.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%end if %>
<a href="<%=strPath%>logout.asp"><img src="<%=strPath%>images/logout-img.gif" width="79" height="24" border="0"></a>
<%end if%></td>
</tr>
<tr>
<td height="30" align="right"><strong>
<%if Session("MemberID") <> "" or Session("empID") <> "" then%>
<font color="#FF0000"><strong>Welcome <font color="#FF0000"><strong><%=Session("FirstName") %></strong></font></strong></font>
<%else%>
Welcome User
<%end if%>
</strong> </td>
</tr>
</table></td>
<%end if%>
</tr>
</table></td>
<td width="10" valign="top">&nbsp;</td>
</tr>
<div style="z-index:0"> <tr>
<td width="609" valign="top" bgcolor="#FFCC00"><img src="<%=strPath%>images/nevisbizlogo.gif"></td>
<td width="265" valign="top" bgcolor="#FFCC00">
<form name="frmMemberLogin" method="post" action="<%=strPath%>chkmemberlogin.asp" onSubmit="return ValidateForm(this)">
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><img src="<%=strPath%>images/NBmember-login-new.gif"></td>
</tr>
<tr>
<td>
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="45"><img src="<%=strPath%>images/NBuser-id.gif"></td>
<td width="88"><input name="TR_UserID" type="text" class="inp" size="10" maxlength="50"></td>
<td width="54"><img src="<%=strPath%>images/NBpassword-new.gif"></td>
<td width="74"><input name="TR_Password" type="Password" class="inp" size="10" maxlength="20"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table class="text3" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>

<td width="65">
<input name="imageField" type="image" src="<%=strPath%>images/NBlogin-button.gif" border="0">
</td>

<td width="249" class="style1"><a href="<%=strPath%>registration.asp" class="lnk">New Registration?</a>&nbsp;&nbsp;&nbsp;<a href="<%=strPath%>forgotpassword.asp" class="lnk">Forgot Password</a></td>
</tr>
</table></td>
</tr>
</table></form> </td>
</div>
<tr><td colspan="2" valign="top"><a href="http://www.nevisbiz.com"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c1.gif" width="69" height="29" border="0"></a>
<img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c2.gif" width="10" height="29"> <a href="http://www.nevisbiz.com/news"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c3.gif" width="48" height="29" border="0"></a> <img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c4.gif" width="15" height="29"><a href="http://www.nevisbiz.com/agents"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c5.gif" width="85" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c6.gif" width="16" height="29"><a href="http://www.nevisbiz.com/business"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c7.gif" width="135" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c8.gif" width="13" height="29"><a href="http://www.nevisbiz.com/jobs"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c9.gif" width="44" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c10.gif" width="12" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=9"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c11.gif" width="94" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c12.gif" width="12" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=10"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c13.gif" width="46" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c14.gif" width="10" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=4"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c15.gif" width="57" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c16.gif" width="15" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=12"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c17.gif" width="113" height="29" border="0"></a></td>
<!-- <img src="<%=strPath%>images/directory.gif" width="84" height="26" border="0"> -->
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#E8B620" class="text3">
<tr>

<td width="760" valign="middle">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="text2">
<tr>
<form name="frmSearch" method="post" action="<%=strPath%>search.asp" onSubmit="return ValidateForm(this)">
<td width="52"><img src="<%=strPath%>images/NBsearch.gif"></td>
<td width="125">
<select name="TR_Search_Feature" class="inp">
<option>Select</option>
<option value="1" <%If intSearchFeature =1 then%>Selected<%end if%>>Business Directory</option>
<option value="2" <%If intSearchFeature =2 then%>Selected<%end if%>>Jobs</option>
<option value="3" <%If intSearchFeature =3 then%>Selected<%end if%>>RealEstate Agents</option>
</select>
</td>
<td width="140">
<input name="txtKeyWords" type="text" class="inp">
</td>
<td><input name="imageGo" type="image" src="<%=strPath%>images/NBgo.gif" border="0"></td></form>
<td><input name="imageHelp" type="image" src="<%=strPath%>images/NBhelp.gif" border="0" onClick="window.open('<%=strPath%>help.asp','','width=400;height=600;location=0,scrollbars=1,left=150,top=200')"></td>
</tr>
</table></td>

<td width="116" align="right">&nbsp;</td>
</tr>
</table>

</td>
</tr>
</table>

NancyJ
08-31-2005, 02:05 PM
<%set rsbanner=cnconn.execute("select * from nevis_top_banner where status =1 order by newID()")
if not rsbanner.eof then

topimage=rsbanner("banner")
topText=rsBanner("text")

topsite = Trim(rsBanner("site"))

if Instr(topsite,"http://") >0 then
strUrl = topsite
else
strUrl = "http://" & topsite
end if
End if
rsbanner.close
set rsbanner=nothing%><%if topimage<>"" then %>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>

<%ENd if%>
<style type="text/css">
<!--
.style1 {font-size: x-small}
-->
</style>

<a href="<%=strUrl%>"><img src="<%=strPath%>images/TopImages/<%=topimage%>" border="0" width="700" alt="<%=topText%>" height="90"></a>
<table width="90%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCC00">
<tr>
<td> <table width="100%" border="0" cellpadding="0" cellspacing="0" class="text2">
<tr>
<td colspan="2" valign="top"><table class=text3 width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%'THIS TD WILL HAVE A LOGIN AS WELL AS MYADMIN TAB%>
<%IF Session("UserName") = "" Then%>
<%else%>
<td>
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="right" valign="middle">
<%
if Session("MemberID") <> "" or Session("empID") <> "" then
if Session("FeaturedAgent") then %>
<a href="<%=strPath%>Agents/viewprofile.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<% elseif Session("FeaturedJobs") then
if session("Seeker") = "JS" then%>
<a href="<%=strPath%>JobSeekers/jobskeer-my-admin.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%elseif session("Employer") = "JE" then%>
<a href="<%=strPath%>JobsEmployer/my-admin.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%elseif session("Employer")="" and session("Seeker")="" then %>
<a href="<%=strPath%>Jobs/viewprofile.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%end if%>
<%elseif Session("FeaturedBusiness") then %>
<a href="<%=strPath%>Business/viewprofile.asp" class="lnk"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%end if %>
<a href="<%=strPath%>logout.asp"><img src="<%=strPath%>images/logout-img.gif" width="79" height="24" border="0"></a>
<%end if%></td>
</tr>
<tr>
<td height="30" align="right"><strong>
<%if Session("MemberID") <> "" or Session("empID") <> "" then%>
<font color="#FF0000"><strong>Welcome <font color="#FF0000"><strong><%=Session("FirstName") %></strong></font></strong></font>
<%else%>
Welcome User
<%end if%>
</strong> </td>
</tr>
</table></td>
<%end if%>
</tr>
</table></td>
<td width="10" valign="top">&nbsp;</td>
</tr>
<div style="z-index:0"> <tr>
<td width="609" valign="top" bgcolor="#FFCC00"><img src="<%=strPath%>images/nevisbizlogo.gif"></td>
<td width="265" valign="top" bgcolor="#FFCC00">
<%IF Session("UserName") = "" Then%>
<form name="frmMemberLogin" method="post" action="<%=strPath%>chkmemberlogin.asp" onSubmit="return ValidateForm(this)">
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><img src="<%=strPath%>images/NBmember-login-new.gif"></td>
</tr>
<tr>
<td>
<table class="text3" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="45"><img src="<%=strPath%>images/NBuser-id.gif"></td>
<td width="88"><input name="TR_UserID" type="text" class="inp" size="10" maxlength="50"></td>
<td width="54"><img src="<%=strPath%>images/NBpassword-new.gif"></td>
<td width="74"><input name="TR_Password" type="Password" class="inp" size="10" maxlength="20"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table class="text3" width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>

<td width="65">
<input name="imageField" type="image" src="<%=strPath%>images/NBlogin-button.gif" border="0">
</td>

<td width="249" class="style1"><a href="<%=strPath%>registration.asp" class="lnk">New Registration?</a>&nbsp;&nbsp;&nbsp;<a href="<%=strPath%>forgotpassword.asp" class="lnk">Forgot Password</a></td>
</tr>
</table></td>
</tr>
</table></form><% end if %> </td>
</div>
<tr><td colspan="2" valign="top"><a href="http://www.nevisbiz.com"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c1.gif" width="69" height="29" border="0"></a>
<img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c2.gif" width="10" height="29"> <a href="http://www.nevisbiz.com/news"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c3.gif" width="48" height="29" border="0"></a> <img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c4.gif" width="15" height="29"><a href="http://www.nevisbiz.com/agents"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c5.gif" width="85" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c6.gif" width="16" height="29"><a href="http://www.nevisbiz.com/business"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c7.gif" width="135" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c8.gif" width="13" height="29"><a href="http://www.nevisbiz.com/jobs"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c9.gif" width="44" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c10.gif" width="12" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=9"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c11.gif" width="94" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c12.gif" width="12" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=10"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c13.gif" width="46" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c14.gif" width="10" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=4"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c15.gif" width="57" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c16.gif" width="15" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=12"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c17.gif" width="113" height="29" border="0"></a></td>
<!-- <img src="<%=strPath%>images/directory.gif" width="84" height="26" border="0"> -->
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#E8B620" class="text3">
<tr>

<td width="760" valign="middle">
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="text2">
<tr>
<form name="frmSearch" method="post" action="<%=strPath%>search.asp" onSubmit="return ValidateForm(this)">
<td width="52"><img src="<%=strPath%>images/NBsearch.gif"></td>
<td width="125">
<select name="TR_Search_Feature" class="inp">
<option>Select</option>
<option value="1" <%If intSearchFeature =1 then%>Selected<%end if%>>Business Directory</option>
<option value="2" <%If intSearchFeature =2 then%>Selected<%end if%>>Jobs</option>
<option value="3" <%If intSearchFeature =3 then%>Selected<%end if%>>RealEstate Agents</option>
</select>
</td>
<td width="140">
<input name="txtKeyWords" type="text" class="inp">
</td>
<td><input name="imageGo" type="image" src="<%=strPath%>images/NBgo.gif" border="0"></td></form>
<td><input name="imageHelp" type="image" src="<%=strPath%>images/NBhelp.gif" border="0" onClick="window.open('<%=strPath%>help.asp','','width=400;height=600;location=0,scrollbars=1,left=150,top=200')"></td>
</tr>
</table></td>

<td width="116" align="right">&nbsp;</td>
</tr>
</table>

</td>
</tr>
</table>

vcp105
08-31-2005, 03:19 PM
Nancy - is your last post a proposed fix? Thanks.

NancyJ
08-31-2005, 03:44 PM
yes.
assuming the login processing form correctly sets the session variables called in your existing script then it will only show the login form when a user isnt logged in

vcp105
09-02-2005, 03:54 AM
Nancy that worksthanks much but what exactly did you do ? I have another page that I'm having the same problem with...see below post. Thanks again.

vcp105
09-02-2005, 03:54 AM
<%
strPath="../"
set rsbanner=cnconn.execute("select * from nevis_top_banner where status =1 order by newID()")
if not rsbanner.eof then

topimage=rsbanner("banner")
topText=rsBanner("text")

topsite = Trim(rsBanner("site"))

if Instr(topsite,"http://") >0 then
strUrl = topsite
else
strUrl = "http://" & topsite
end if
End if
rsbanner.close

set rsbanner=nothing%><%if topimage<>"" then %><body bgcolor="#FFCC00">
<div align="center">
<table width="90%" border="0" bgcolor="#FFCC00" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><a href="<%=strUrl%>"><img src="<%=strPath%>images/TopImages/<%=topimage%>" border="0" width="700" alt="<%=topText%>" height="90"></a> </div></td>
</tr>
</table>
<%ENd if%>
</div>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFCC00">
<tr>
<td colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<%'THIS TD WILL HAVE A LOGIN AS WELL AS MYADMIN TAB%>
<%IF Session("UserName") = "" Then%>
<%else%>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td align="right" valign="middle">
<%
if Session("MemberID") <> "" or Session("empID") <> "" then
if Session("FeaturedAgent") then %>
<a href="<%=strPath%>Agents/viewprofile.asp"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<% elseif Session("FeaturedJobs") then
if session("Seeker") = "JS" then%>
<a href="<%=strPath%>JobSeekers/jobskeer-my-admin.asp"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%elseif session("Employer") = "JE" then%>
<a href="<%=strPath%>JobsEmployer/my-admin.asp"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%elseif session("Employer")="" and session("Seeker")="" then %>
<a href="<%=strPath%>Jobs/viewprofile.asp"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%end if%>
<%elseif Session("FeaturedBusiness") then %>
<a href="<%=strPath%>Business/viewprofile.asp"><img src="<%=strPath%>images/myadmin-img.gif" width="80" height="24" border="0"></a>
<%end if %>
<a href="<%=strPath%>logout.asp"><img src="<%=strPath%>images/logout-img.gif" width="79" height="24" border="0"></a>
<%end if%></td>
</tr>
<tr>
<td height="30" align="right"><strong>
<%if Session("MemberID") <> "" or Session("empID") <> "" then%>
<font color="#FF0000"><strong>Welcome <font color="#FF0000"><strong><%=Session("FirstName") %></strong></font></strong></font>
<%else%>
Welcome User
<%end if%>
</strong> </td>
</tr>
</table></td>
<%end if%>
</tr>
</table></td>
<td width="3" valign="top" bgcolor="#FFCC00"></td>
</tr>
<div style="z-index:0"> <tr>
<td width="432" valign="top" bgcolor="#FFCC00"><img src="<%=strPath%>images/nevisbizlogo.gif"></td>
<td width="337" valign="top" bgcolor="#FFCC00">
<form name="frmMemberLogin" method="post" action="<%=strPath%>chkmemberlogin.asp" onSubmit="return ValidateForm(this)">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr>
<td><img src="<%=strPath%>images/NBmember-login-new.gif"></td>
</tr>
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="45"><img src="<%=strPath%>images/NBuser-id.gif"></td>
<td width="88"><input name="TR_UserID" type="text" size="10" maxlength="50"></td>
<td width="54"><img src="<%=strPath%>images/NBpassword-new.gif"></td>
<td width="74"><input name="TR_Password" type="Password" size="10" maxlength="20"></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>

<td width="65">
<input name="imageField" type="image" src="<%=strPath%>images/NBlogin-button.gif" border="0">
</td>

<td width="249"><a href="<%=strPath%>registration.asp">New Registration?</a>&nbsp;&nbsp;&nbsp;<a href="<%=strPath%>forgotpassword.asp">Forgot Password</a></td>
</tr>
</table></td>
</tr>
</table></form> </td>
</div>
<tr><td colspan="2" valign="top" bgcolor="#FFCC00"><a href="http://www.nevisbiz.com"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c1.gif" width="69" height="29" border="0"></a>
<img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c2.gif" width="10" height="29"> <a href="http://www.nevisbiz.com/news"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c3.gif" width="48" height="29" border="0"></a> <img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c4.gif" width="15" height="29"><a href="http://www.nevisbiz.com/agents"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c5.gif" width="85" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c6.gif" width="16" height="29"><a href="http://www.nevisbiz.com/business"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c7.gif" width="135" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c8.gif" width="13" height="29"><a href="http://www.nevisbiz.com/jobs"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c9.gif" width="44" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c10.gif" width="12" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=9"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c11.gif" width="94" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c12.gif" width="12" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=10"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c13.gif" width="46" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c14.gif" width="10" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=11"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c15.gif" width="57" height="29" border="0"></a><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c16.gif" width="15" height="29"><a href="http://www.nevisbiz.com/news/category_hl_view.asp?CID=12"><img src="http://www.nevisbiz.com/images/nevisbizmasthead2_r2_c17.gif" width="113" height="29" border="0"></a></td>
<!-- <img src="<%=strPath%>images/directory.gif" width="84" height="26" border="0"> -->
</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#E8B620">
<tr>

<td width="760" valign="middle">
<table width="100%" border="0" cellpadding="0" cellspacing="0" >
<tr>
<form name="frmSearch" method="post" action="<%=strPath%>search.asp" onSubmit="return ValidateForm(this)">
<td width="52"><img src="<%=strPath%>images/NBsearch.gif"></td>
<td width="125">
<select name="TR_Search_Feature">
<option>Select</option>
<option value="1" <%If intSearchFeature =1 then%>Selected<%end if%>>Business Directory</option>
<option value="2" <%If intSearchFeature =2 then%>Selected<%end if%>>Jobs</option>
<option value="3" <%If intSearchFeature =3 then%>Selected<%end if%>>RealEstate Agents</option>
</select>
</td>
<td width="140">
<input name="txtKeyWords" type="text">
</td>
<td><input name="imageGo" type="image" src="<%=strPath%>images/NBgo.gif" border="0"></td></form>
<td><input name="imageHelp" type="image" src="<%=strPath%>images/NBhelp.gif" border="0" onClick="window.open('<%=strPath%>help.asp','','width=400;height=600;location=0,scrollbars=1,left=150,top=200')"></td>
</tr>
</table></td>

<td width="116" align="right">&nbsp;</td>
</tr>
</table></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#FFFFFF">
<td width="250" valign="top"><br>
&nbsp;&nbsp;<img src="../images/news_1.gif" width="53" height="17">
<br>
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td background="../images/de-dot-line.gif"><img src="../images/de-dot-line.gif" width="7" height="1"></td>
<td width="7"><img src="../images/de-dot-line.gif" width="7" height="1"></td>
</tr>
</table> </td>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table>

NancyJ
09-02-2005, 07:52 AM
The answer was already in your code

<%IF Session("UserName") = "" Then%>
<%else%>
but there was nothing in between the 2 lines, everything was in the 'else' part. It should be



<%IF Session("UserName") = "" Then%>
'show login form
<%else%>
'show alternative logged in content
<%end if%>

vcp105
09-03-2005, 12:50 AM
I think I got the gist of it...i inserted <%If Session........> <%end if....> around the second instance of the form and that seems to have worked. Thanks again.

Regards,
V



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum