Re: Case sensitive password

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

 



Thank you Daniel,  I think that did the trick.  Am checking this out now...

Best
R.C.

""Daniel Brown"" <parasane@xxxxxxxxx> wrote in message > > session_start();
> >
> >  $_SESSION ['userpass'] = $_POST ['pass'];
> >  $_SESSION ['authuser'] = 0;
> >
> > $login = "VIDEO";
> > $login2 = "video";
> >
> > if (($_SESSION['userpass'] == $login) or ($_SESSION['userpass'] ==
$login2))
> > {
> > $_SESSION['authuser'] = 1;
> > ?>
>
>     Try this:
>
> <?php
>
> if(preg_match('/^'.$_SESSION['userpass'].'$/i',$login)) {
>         echo "Good.\n";
> } else {
>         echo "Bad.\n";
> }
>
> ?>



-- 
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