В сообщении от 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]
===
А ещё говорят так:
T
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
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 preferred
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 t
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";
> >
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 cas
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 variato
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... nothin
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 o
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
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 stil
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 al
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
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
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 a
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 us
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"
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 th
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 t
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
20 matches
Mail list logo