Re: [PHP] Case sensitive password

2008-06-21 Thread Pavel
В сообщении от Friday 20 June 2008 23:05:55 Andrew Ballard написал(а): if(preg_match('/^'.$_SESSION['userpass'].'$/i',$login)) { So, why you use /i ? :-) -- === С уважением, Манылов Павел aka [R-k] icq: 949-388-0 mailto:[EMAIL PROTECTED] === А ещё говорят так: The

Re: [PHP] Case sensitive password

2008-06-20 Thread Andrew Ballard
On Thu, Jun 19, 2008 at 7:29 PM, Kyle Browning [EMAIL PROTECTED] wrote: Why not md5 the password, and store the md5 encryption. Then when they type something in, md5 it and compare the md5 strings. That will ensure that it is Case Sensitive On Thu, Jun 19, 2008 at 2:04 PM, R.C. [EMAIL

Re: [PHP] Case sensitive password

2008-06-19 Thread tedd
At 9:36 PM -0700 6/18/08, R.C. wrote: I have coded a php page that accepts a password. What is the code to make sure the password entered is NOT case-sensitive? Thanks much R.C. Why? If a user has selected a password, then leave it alone and don't change it -- it's their password. If a

Re: [PHP] Case sensitive password

2008-06-19 Thread Daniel Brown
On Thu, Jun 19, 2008 at 12:45 AM, Nathan Nobbe [EMAIL PROTECTED] wrote: i hate posting the same answer to a given question thats already been posted, but i had this all typed in when chris submitted his answer, so here it is again.. One of the very, very few things that pisses me off about

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Chris, Thank you. That worked good. Appreciate the assistance. Best R.C. Chris [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] R.C. wrote: Thank you for your reply. The password is not stored, actually, like in a databse. We're only dealing with one password. When the user

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Nathan, Thank you ... very thorough. Best R.C. Nathan Nobbe [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] i hate posting the same answer to a given question thats already been posted, but i had this all typed in when chris submitted his answer, so here it is again.. On Wed, Jun

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Tedd, thank you for your input but it's the site client who wants the user to input this ONE password either upper or lower case...it's for accessing a protected page... nothing major. But generally I agree... if the user has selected a password, that is what he/she wants and it should be left

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
I've tried some of the methods mentioned in earlier posts, but I don't understand this correctly. Here is the code I have to validate a hard corded password to access a page, which is in upper case WHERE do I input the code to make sure that whatever case a user inputs this word, it will

Re: [PHP] Case sensitive password

2008-06-19 Thread tedd
At 8:59 AM -0700 6/19/08, R.C. wrote: Tedd, thank you for your input but it's the site client who wants the user to input this ONE password either upper or lower case...it's for accessing a protected page... nothing major. Nothing major until it is. As for the client, I always said Everyone

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Hi Tedd, It is NOT the user who determines this ONE password, it's the client... he gives it out to selected folks to input For example: he says to a few people: use video to access this page okay? He would like to make this word case-insensitive so the few people can type in either Video or

Re: [PHP] Case sensitive password

2008-06-19 Thread Andrew Ballard
On Thu, Jun 19, 2008 at 3:11 PM, tedd [EMAIL PROTECTED] wrote: At 8:59 AM -0700 6/19/08, R.C. wrote: Tedd, thank you for your input but it's the site client who wants the user to input this ONE password either upper or lower case...it's for accessing a protected page... nothing major.

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Andrew, That is correct. Only ONE password to access a restricted page for selected people. But... they want to make that ONE password case-insensitive. I added the following code with 2 variables now, one being upper case, one being lower case but that, of course, doesn't cover all the

Re: [PHP] Case sensitive password

2008-06-19 Thread Daniel Brown
On Thu, Jun 19, 2008 at 4:18 PM, R.C. [EMAIL PROTECTED] wrote: Andrew, That is correct. Only ONE password to access a restricted page for selected people. But... they want to make that ONE password case-insensitive. I added the following code with 2 variables now, one being upper case, one

Re: [PHP] Case sensitive password

2008-06-19 Thread R.C.
Thank you Daniel, I think that did the trick. Am checking this out now... Best R.C. Daniel Brown [EMAIL PROTECTED] wrote in message session_start(); $_SESSION ['userpass'] = $_POST ['pass']; $_SESSION ['authuser'] = 0; $login = VIDEO; $login2 = video; if

Re: [PHP] Case sensitive password

2008-06-19 Thread Kyle Browning
Why not md5 the password, and store the md5 encryption. Then when they type something in, md5 it and compare the md5 strings. That will ensure that it is Case Sensitive On Thu, Jun 19, 2008 at 2:04 PM, R.C. [EMAIL PROTECTED] wrote: Thank you Daniel, I think that did the trick. Am checking

Re: [PHP] Case sensitive password

2008-06-19 Thread tedd
At 4:06 PM -0400 6/19/08, Andrew Ballard wrote: I could be wrong, but I didn't see anything about a username. It sounds to me more like it is a single password shared with all the people who should have access to a specific, non-personalized area of the site. It certainly wouldn't be my

[PHP] Case sensitive password

2008-06-18 Thread R.C.
I have coded a php page that accepts a password. What is the code to make sure the password entered is NOT case-sensitive? Thanks much R.C. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Case sensitive password

2008-06-18 Thread Chris
R.C. wrote: I have coded a php page that accepts a password. What is the code to make sure the password entered is NOT case-sensitive? Before you store the password, make it all lowercase (or uppercase, whatever you prefer). $password = strtolower($password); When you compare the passwords,

Re: [PHP] Case sensitive password

2008-06-18 Thread Nathan Nobbe
i hate posting the same answer to a given question thats already been posted, but i had this all typed in when chris submitted his answer, so here it is again.. On Wed, Jun 18, 2008 at 10:36 PM, R.C. [EMAIL PROTECTED] wrote: I have coded a php page that accepts a password. What is the code to

Re: [PHP] Case sensitive password

2008-06-18 Thread R.C.
Thank you for your reply. The password is not stored, actually, like in a databse. We're only dealing with one password. When the user inputs the password, he/she should be able to input either in lower or upper case or both abd they should have access to the protected file in this case. Is

Re: [PHP] Case sensitive password

2008-06-18 Thread Chris
R.C. wrote: Thank you for your reply. The password is not stored, actually, like in a databse. We're only dealing with one password. When the user inputs the password, he/she should be able to input either in lower or upper case or both abd they should have access to the protected file in