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