Hi,
Its just a login and password validation that I am trying to achieve. If the
username is correct then the person is able to view certain page, if
incorrect then he is directed elsewhere.
?
$userid=mysql_real_escape_string($userid);
$password=mysql_real_escape_string($password);
On 9/16/07, Chris Carter [EMAIL PROTECTED] wrote:
Hi,
Its just a login and password validation that I am trying to achieve. If the
username is correct then the person is able to view certain page, if
incorrect then he is directed elsewhere.
?
$userid=mysql_real_escape_string($userid);
@lists.php.net
Subject: [PHP] php Login script issue
Hi,
Its just a login and password validation that I am trying to achieve. If the
username is correct then the person is able to view certain page, if
incorrect then he is directed elsewhere.
?
$userid=mysql_real_escape_string($userid);
$password
'))){
if(($rec['userName']==$userName)($rec['password']==$password))
bastien
Date: Sun, 16 Sep 2007 02:39:57
-0700 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP]
php Login script issue Hi, Its just a login and password validation
Could anyone let me know or point me to where I could find out how to setup
a login for my php site. I've been looking around and found plenty of stuff
for PHP/Apache, but nothing for just PHP.
Any help or info about this would be appreciated.
Thanks,
Chuck
--
PHP General Mailing List
Chuck wrote:
Could anyone let me know or point me to where I could find out how to setup
a login for my php site. I've been looking around and found plenty of stuff
for PHP/Apache, but nothing for just PHP.
You need to store user information somewhere and apache .htpasswd files
and mysql
I'm looking for some good, secure login code, and found the following
article:
http://www.devshed.com/c/a/PHP/Creating-a-Secure-PHP-Login-Script/
Not being much of a security expert, I was wondering if anyone here
could say whether this code is any good? Or if there's a better one
elsewhere?
7 matches
Mail list logo