note 101650 deleted from function.base64-encode by danbrown

From: Date: Sun, 02 Jan 2011 15:53:58 +0000
Subject: note 101650 deleted from function.base64-encode by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-175396@lists.php.net to get a copy of this message
Note Submitter: Anonymous ---- using base64 for create login system <?php $login = $_POST['login']; $loginCheck = base64_encode($login); $password = $_POST['password']; $passwordCheck = base64_encode($password); if($loginCheck === 'YWRtaW4=' & $passwordCheck === 'c2VuaGE='){ print 'Hello World!'; }else{ print "The username and password entered are incorrect."; } ?>

« previous php.notes (#175396) next »