Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Mainpage Logon!!
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Mainpage Logon!!

 Post Reply Post Reply Page  12>
Author
Milan View Drop Down
Newbie
Newbie


Joined: 26 April 2003
Location: Neutral Zone
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Milan Quote  Post ReplyReply Direct Link To This Post 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>
      &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


 

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Milan View Drop Down
Newbie
Newbie


Joined: 26 April 2003
Location: Neutral Zone
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Milan Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Milan View Drop Down
Newbie
Newbie


Joined: 26 April 2003
Location: Neutral Zone
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Milan Quote  Post ReplyReply Direct Link To This Post Posted: 26 April 2003 at 7:21am

Ah...maybe that's a option.

I'll try it.

Thnx

 

Back to Top
tixe View Drop Down
Groupie
Groupie
Avatar

Joined: 19 July 2002
Location: Argentina
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote tixe Quote  Post ReplyReply Direct Link To This Post 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
      Tixe
Home - Mail Me
Back to Top
jabbasabba View Drop Down
Groupie
Groupie
Avatar

Joined: 11 April 2003
Location: Sweden
Status: Offline
Points: 103
Post Options Post Options   Thanks (0) Thanks(0)   Quote jabbasabba Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
tixe View Drop Down
Groupie
Groupie
Avatar

Joined: 19 July 2002
Location: Argentina
Status: Offline
Points: 76
Post Options Post Options   Thanks (0) Thanks(0)   Quote tixe Quote  Post ReplyReply Direct Link To This Post 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
Home - Mail Me
Back to Top
 Post Reply Post Reply Page  12>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.