Print Page | Close Window

Mainpage Logon!!

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=2151
Printed Date: 31 March 2026 at 7:09am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Mainpage Logon!!
Posted By: Milan
Subject: Mainpage Logon!!
Date Posted: 26 April 2003 at 4:11am

Hello,

I'm using the Web Wiz Guide Forum.
On my mainpage of my website I've got a integrated User Logon.
I'm using the following script:

<table celspadding=0 cellspacing=0 width=46 border=0>
 <tr>
  <td bgcolor="#FFCC66" width=135  valign=top>
   <img border="0" src="images/online_users.gif"><br>
   <font face="Verdana" size="1">
   <form method="post" name="frmLogin" action="forum/login_user.asp?FID=0" onSubmit="return CheckForm();" onReset="return confirm('Are you sure you want to reset the form?');">
   <p>Username:<br>
      &nbsp;<input type="text" name="name" size="15" maxlength="15" value="" /><br>
      Password:<br>
      &nbsp;<input type="password" name="password" size="15" maxlength="15" /><br>
      <input type="checkbox" name="AutoLogin" value="True" checked />AutoLogin<br>
      <input type="checkbox" name="ActiveUsers" value="True" checked />Add to Active Users<br>
      <br>
      </p>
      <center>
      <p><input type="image" src="forum/forum_images/login.gif" value="Login"></p>
   </center>
      <center>
      <p><a href="javascript:openWin('forum/forgotten_password.asp','forgot_pass','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=1,width=550,height=300')" class="smLink">Forgot Password</a> | <a href="forum/registration_rules.asp" class="smLink">Register</a></p>
   </center>
    <input type="hidden" name="sessionID" value="508345253" />
     </form>
   </font>
  </td>
 </tr>
</table>

But when you logon on the mainpage you go to the forumpage (default.asp). In the user_login.asp is "default.asp" given as returnpage. But I want to stay on the mainpage after loging in on the mainpage.

I hope somene can help me!

thnx

Milan


 




Replies:
Posted By: WebWiz-Bruce
Date Posted: 26 April 2003 at 4:13am
You would need to change the login_user.asp page to get it to return to the page you require.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Milan
Date Posted: 26 April 2003 at 4:38am

I understand!

But I want the following:
When I login using the mainpage I want to stay on the mainpage.
When I login using the login_user.asp I want to stay on the default.asp.

I've seen this before. You know how to do this.
Can I give a different return page in my script on my mainpage??

Milan



Posted By: WebWiz-Bruce
Date Posted: 26 April 2003 at 4:56am
Probally the simplest way without me going through all the new code that you would need and a long list of instrcutions is to simply make a second copy of the login_user.asp page and point to that with the return page form that being set as your main page.

-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Milan
Date Posted: 26 April 2003 at 7:21am

Ah...maybe that's a option.

I'll try it.

Thnx

 



Posted By: tixe
Date Posted: 26 April 2003 at 10:09am
Hi man .. I tryed the some thing .. and I reneamed a copy of login_users.aps as login_users2.asp and edit this file to change the form action to ../the place where you like return after submint/the file that you like.asp and into the some file on one line call too to login_users.asp to validate the user and pass, change this line to login_users2.asp, and I comment o rem the line that call at menu bar and it not work good ever, but if you live this line ( and when some one go to you site the first page or the frontpage is login_users2.asp ) it run good .. it is that you like make ?? .. to may see it got yo my site at http://www.tixe.com.ar - www.tixe.com.ar

-------------
      Tixe
http://www.tixe.com.ar - Home - mailto:tixe@tixe.com.ar?Subject=From WWG Site - Mail Me


Posted By: jabbasabba
Date Posted: 26 April 2003 at 11:50am

I have done, as tixie, a renamed copy of login_user.asp. Thatīs because of my quick-login on the default page.

On line 165 you find this: Response.Redirect("default.asp"). Just change this default.asp to the page you will redirect to.



Posted By: tixe
Date Posted: 26 April 2003 at 11:57am

Ok .. but you have to lines that call to this line .. you must change both , if you use notepad to edit the file please press CTRL+B or F ( depend of yout language on yout windows ) and search default.asp

Originally posted by jabbasabba jabbasabba wrote:

I have done, as tixie, a renamed copy of login_user.asp. Thatīs because of my quick-login on the default page.

On line 165 you find this: Response.Redirect("default.asp"). Just change this default.asp to the page you will redirect to.



-------------
      Tixe
http://www.tixe.com.ar - Home - mailto:tixe@tixe.com.ar?Subject=From WWG Site - Mail Me


Posted By: jabbasabba
Date Posted: 26 April 2003 at 2:40pm

OK!

This is how I made the quick login for the default.asp:

<!-- QUICK LOGIN - START --------------------------------- -->
<%
Dim Return

return = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING")
%>

    <form action="login_user_2.asp?return=<%=Return%>" name="frmLogin" method="post">
    <td valign="bottom" width="1">
 <span class="formtext">Username:</span><br>
 <input type="text" name="name" class="input" maxlength="15">
    </td>
    <td valign="bottom" width="1">
 <span class="formtext">Password:</span><br>
 <input type="password" name="password" class="input" maxlength="15">
    </td>
    <td valign="bottom" width="1">
 <input type="submit" value="Login" class="knapp">
    </td>
    <!-- SessionsID -->
    <input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />
    <!-- Add user to "Active Users" -->
    <input type="hidden" name="ActiveUsers" value="True" checked />
    </form>
<!-- QUICK LOGIN - END ----------------------------------- -->


And this is the login_user_2.asp at line 165 (Note: It just returns):
Response.Redirect(request.querystring("return"))




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net