| Author |
Topic Search Topic Options
|
Milan
Newbie
Joined: 26 April 2003
Location: Neutral Zone
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
Topic: Mainpage Logon!! 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> <input type="text" name="name" size="15" maxlength="15" value="" /><br> Password:<br> <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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Milan
Newbie
Joined: 26 April 2003
Location: Neutral Zone
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
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
|
 |
WebWiz-Bruce
Admin Group
Web Wiz Developer
Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
|
Post Options
Thanks(0)
Quote Reply
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.
|
|
|
 |
Milan
Newbie
Joined: 26 April 2003
Location: Neutral Zone
Status: Offline
Points: 3
|
Post Options
Thanks(0)
Quote Reply
Posted: 26 April 2003 at 7:21am |
Ah...maybe that's a option.
I'll try it.
Thnx
|
 |
tixe
Groupie
Joined: 19 July 2002
Location: Argentina
Status: Offline
Points: 76
|
Post Options
Thanks(0)
Quote Reply
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 www.tixe.com.ar
|
|
|
 |
jabbasabba
Groupie
Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
|
Post Options
Thanks(0)
Quote Reply
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.
|
 |
tixe
Groupie
Joined: 19 July 2002
Location: Argentina
Status: Offline
Points: 76
|
Post Options
Thanks(0)
Quote Reply
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
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. |
|
|
|
 |