Print Page | Close Window

Password login, case sensitive

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=13751
Printed Date: 01 April 2026 at 11:52am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Password login, case sensitive
Posted By: Loque
Subject: Password login, case sensitive
Date Posted: 10 February 2005 at 8:41am
Hi all,

I have downloaded the "Web Wiz Guide Password Login realease v1.71 beta"

Its very simple and nice which is what i need as i am very new to asp, or any real coding other than xhtml or simple AS. Anyway, depending on the username specified i wanted the script to redirect the user to a static htm page specifically created for them... so i edited the redirect line, fairly simple, to later realise the username is not case sensitive.

Response.Redirect strUserName & ".htm"

Problem is, a user can enter their name in as fish or Fish .. or even FISH thus giving me some problems, and instead of warning all peeps to do it in lowercase was wondering how you guys would tackle this problem.

I am sure there are a few ways of getting around this, probably some JS will do the trick but any help is welcomed!

Cheers!
Løque



Replies:
Posted By: dj air
Date Posted: 10 February 2005 at 10:54am
to make a value all lower case use

strVariable = LCase(Variable)

you can use the UCase for all upper case.

strVariable = UCase(strVariable)

subsitute strVariable for any you want to chage.


Posted By: Loque
Date Posted: 10 February 2005 at 12:51pm
Thank you! Really apreciated!

just for those who ever want to use it, i used it like:
strUserName = LCase(strUserName)


-------------
Fancy a game of UT Instagib DM 1on1? =]



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