I'm using this User Manager program and when I access the main default page it shows the Registration Fields, and once you register, then you can select "log-in" from the menu on the left side of the page. I'd rather have it so when I access this default page, that it shows the Log-In page, and then to Register you select Register from the menu on the left. (In this way, it's more convenient for those once they've registered. They can go directly to the main default page to log-in). How can I change this code to accomplish this? <Title>Main Page</Title> <!--- #include virtual=/smusermanager/utilities/styles.asp --> </HEAD> <BODY leftMargin=0 topMargin=0 marginheight="0" marginwidth="0"> <TABLE cellSpacing=0 valign=top cellPadding=0 width=100% border=0> <TR valign=middle height=20> <TD class=headera1><IMG src="/smusermanager/images/clear.gif" height=20 width=159 border=0></TD> <TD width="100%" align=right class=headera2> </TD> </TR> <TR valign=top> <TD><IMG src="/smusermanager/images/logo.gif" height=50 width=159 border=0></TD> <TD valign=middle width=620><font class=setuptext>User Manager 2.1</font></TD> </TR> <TR valign=top height=1> <TD colspan=2 class=black><IMG src="/smusermanager/images/clear.gif" height=1 width=100% border=0></TD> </TR> </TABLE> <TABLE cellSpacing=0 valign=top cellPadding=0 height=100% width=100% border=0> <TR valign=top> <TD width=10%> <TABLE cellSpacing=0 valign=top cellPadding=0 width=100% border=0> <TR valign=middle> <TD valign=middle class=lightgrey><IMG src="/smusermanager/images/clear.gif" height=20 width=160 align=absmiddle></TD> </TR> <TR valign=top height=2> <TD><IMG src="/smusermanager/images/clear.gif" height=2 width=160 border=0></TD> </TR> <TR valign=top height=3> <TD class=gray><IMG src="/smusermanager/images/clear.gif" height=3 width=160 border=0></TD> </TR> </TABLE> <TABLE cellSpacing=0 cellPadding=10 width=100% border=0> <TR> <TD><font class=tbody> <IMG src="/smusermanager/images/sepline130.gif"><br> <font class=smallheading><b>Navigation Menu</b></font><br> <IMG src="/smusermanager/images/sepline130.gif"><br> <%if session("id") = "" then%> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=register">Register</a><br> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=login">Login</a><br> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=forgotpass">Forgot Password</a><br> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=forgotusername">Forgot Username</a><br> <%else%> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=inbox">Inbox</a><br> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=compose">Compose</a><br> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=sent">Sent</a><br> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=editprofile">Edit Profile</a><br> <%end if%> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=maillist">Newsletter</a><br> <%if session("id") <> "" then%> <IMG src="/smusermanager/images/clear.gif" width=1 height=5><br><IMG src="/smusermanager/images/link_arrow.gif"> <a href="<%=smumpage%>?action=logout">Log Out</a> <%end if%> </font></TD> </TR> </TABLE> </TD> <TD width="1" height=100% background="/smusermanager/images/dot.gif"> <TABLE cellSpacing=0 valign=top cellPadding=0 width=1 border=0> <TR valign=middle> <TD valign=middle class=lightgrey><IMG src="/smusermanager/images/clear.gif" height=20 width=1 align=absmiddle></TD> </TR> <TR valign=top height=2> <TD class=white><IMG src="/smusermanager/images/clear.gif" height=2 width=1 border=0></TD> </TR> <TR valign=top height=3> <TD class=gray><IMG src="/smusermanager/images/clear.gif" height=3 width=1 border=0></TD> </TR> </TABLE> </TD> <TD width=100%> <TABLE cellSpacing=0 cellPadding=0 width=100% border=0> <TR valign=middle> <TD valign=middle class=lightgrey><IMG src="/smusermanager/images/clear.gif" height=20 width=1 align=absmiddle></TD> </TR> <TR valign=top height=2> <TD class=white><IMG src="/smusermanager/images/clear.gif" height=2 width=1 border=0></TD> </TR> <TR valign=top height=3> <TD class=gray><IMG src="/smusermanager/images/clear.gif" height=3 width=1 border=0></TD> </TR> <TR> <TD valign=top><font class=tbody> <!--- #include virtual=/smusermanager/default.asp --> </font></TD> </TR> </TABLE> </TD> <TD width="1" height=100% background="/smusermanager/images/dot.gif"><IMG src="/smusermanager/images/clear.gif" width="1" height=100% border=0></TD> </TR> </TABLE> <TABLE cellSpacing=0 valign=bottom cellPadding=0 width=100% border=0> <TR valign=top height=4> <TD colspan=2 class=gray><IMG src="/smusermanager/images/clear.gif" height=4 width=25 border=0></TD> </TR> <TR valign=middle height=25> <TD class=headera2> <FONT class=linksmall>Copyright © 2000 <a href="http://" target="_blank"></a>. All Rights Reserved.</FONT></TD> <TD align=right class=headera2><font class=linksmall>Email : <A href="mailto:"></A> </font></TD> </TR> </TABLE> </Body> </BODY> </HTML> Code (markup):
I'm not sure how this user program works, but at the top of your page you can put <%if session("id") = "" then Response.Redirect( smumpage & "?action=login" ) Response.End() %> That will take them to the login page, then you have to modify that page to have the link to <a href="<%=smumpage%>?action=register">Register</a>
Thanks for your reply, but that didn't work. I put your code at the top of the page, and tried to access it via the browser and it wouldn't display the page. Any other help would be greatly appreciated.
Try this: <% If session("id")="" Then Response.Redirect smumpage & "?action=login" %> Code (markup): Also, you will maybe need to show us the default.asp code, part of it.
<%if session("id") = "" then Response.Redirect( smumpage & "?action=login" ) Response.End() End If %> Sorry forgot the end if
better is make login page is default and put another linnk for registor new ling near to login button