Re: Case sensitive password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 variatons on the
"video" word.  I'm looking for the code to make this whole word
case-insensitive, no matter which letter is cap or not.... can you add to
this code below please?

Thanks much
R.C.

session_start();

 $_SESSION ['userpass'] = $_POST ['pass'];
 $_SESSION ['authuser'] = 0;

$login = "VIDEO";
$login2 = "video";

if (($_SESSION['userpass'] == $login) or ($_SESSION['userpass'] == $login2))
{
$_SESSION['authuser'] = 1;
?>

""Andrew Ballard"" <aballard@xxxxxxxxx> wrote in message >
> 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 way to set up
> security, but depending on the level of risk involved it may be
> sufficient.
>
> Andrew



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux