Re: Case sensitive password
| From: | R.C. | Date: | Thu, 19 Jun 2008 17:57:26 +0000 |
| Subject: | Re: Case sensitive password | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-275635@lists.php.net to get a copy of this message | ||
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 still validate?
Thank you for your patience. I'm learning....
Best
R.C.
<?php
session_start();
$_SESSION ['userpass'] = $_POST ['pass'];
$_SESSION ['authuser'] = 0;
$login = "VIDEOS";
if (($_SESSION['userpass'] == $login)) {
$_SESSION['authuser'] = 1;
?>