Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Quick Login Problem-Can’t get it to work
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Quick Login Problem-Can’t get it to work

 Post Reply Post Reply Page  <12
Author
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: 01 September 2003 at 3:04am

The code needs to be within ASP blocks to be processed by the ASP.DLL eg:-

<%
code in here
%>

Back to Top
Magic View Drop Down
Newbie
Newbie
Avatar

Joined: 11 August 2003
Location: United Kingdom
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote Magic Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2003 at 5:25am

<NIT PICKING>

'If the user has logged in then show them a quick login form
If lngLoggedInUserID = 0 OR lngLoggedInUserID = 2 Then

Shouldn't that be If the user hasn't logged in.....

</NIT PICKING>

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: 01 September 2003 at 5:29am

These two ID number 0 and 2 (2 being the guest account) are issued to non logged in users.

Really it should be:-

'If the user has not logged in then show them a quick login form
If lngLoggedInUserID = 2 Then

as all non logged in users should have the guest account ID number of 2 but I guess I got a bit carried away.

The whole lot hs been updated since my first post on it to be:-

<%
'If the user has not logged in (guest user ID = 2) then show them a quick login form
If lngLoggedInUserID = 2 Then
 
 Response.Write(vbCrLf & " <td align=""right"" class=""smText""><form method=""post"" name=""frmLogin"" action=""login_user.asp"">" & strTxtQuickLogin & " " & _
 vbCrLf & "     <input type=""text"" size=""10"" name=""name"" class=""smText"" />" & _
 vbCrLf & "       <input type=""password"" size=""10"" name=""password"" class=""smText"" />" & _
 "<input type=""hidden"" name=""AutoLogin"" value=""False"" />" & _
 "<input type=""hidden"" name=""ActiveUsers"" value=""True"" />" & _
 "<input type=""hidden"" name=""sessionID"" value=""" & Session.SessionID & """ />" & _
 vbCrLf & "     <input type=""submit"" value=""" & strTxtGo & """ class=""smText"">" & _
 vbCrLf & " </form></td>") 
 
End If
%>

Also the following needs adding to the language_file_inc.asp file:-

Const strTxtGo = "Go"



Edited by -boRg-
Back to Top
Y.C.Rake View Drop Down
Newbie
Newbie
Avatar

Joined: 06 July 2003
Location: China
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote Y.C.Rake Quote  Post ReplyReply Direct Link To This Post Posted: 01 September 2003 at 5:54am
GOOD~!! Thank you very very much ~!!
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.