Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Current Version (Old)
 Bug?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hejsan
Starting Member

37 Posts

Posted - 27 May 2001 :  16:00:34  Show Profile
Why doesn´t this code work?
It works if I login with the nick I wrote when I registered.
I mean, If I login as "Admin" it will work. But if I login as "admin" it won´t work.
Is asp case sensitive?

if ChkString(strDBNTUserName, "display") = Request.QueryString("member") then

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 27 May 2001 :  16:12:06  Show Profile
Are you using a Unix/Linux platform?
Go to Top of Page

hejsan
Starting Member

37 Posts

Posted - 27 May 2001 :  16:25:56  Show Profile
No, I´m using IIS on Win2K.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 27 May 2001 :  16:46:33  Show Profile
Then it shouldn't matter what case you use. At least that has been my experience.
Go to Top of Page

hejsan
Starting Member

37 Posts

Posted - 27 May 2001 :  16:52:31  Show Profile
But what should I do then?

This code doesnt work if they dont login exactly as they registered.

<%
if ChkString(strDBNTUserName, "display") = Request.QueryString("member") then
%>
This is your profile!<br>
<% else %>

Profile for <% =ChkString(rs("M_NAME"),"display") %>!<br>
<% end if %>

The above code is just an example. im trying to build a mod.
Go to Top of Page

hejsan
Starting Member

37 Posts

Posted - 27 May 2001 :  17:58:35  Show Profile
Is there another way to do this?

I want my script to recognize the member by nick, not id.
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 27 May 2001 :  18:07:41  Show Profile
You could do it this way:

<%
if lcase(ChkString(strDBNTUserName, "display")) = lcase(Request.QueryString("member")) then
%>
This is your profile!<br>
<% else %>

Profile for <% =ChkString(rs("M_NAME"),"display") %>!<br>
<% end if %>
Go to Top of Page

hejsan
Starting Member

37 Posts

Posted - 28 May 2001 :  14:02:45  Show Profile
Thanks. It worked great!
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 28 May 2001 :  14:26:04  Show Profile
you're welcome
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.28 seconds. Powered By: Snitz Forums 2000 Version 3.4.07