Mayuresh Kathe wrote:

> Problem:
> * How can I match the passwords on the form (made to enter
>   them twice).

they are strings stored in two variables - do you need help in comparing 
two strings in PHP ??

> * How do I encrypt the password before storing them in a
>   flat file database.

do a MD5sum of the password using the userid and then MD5 it using a 
secret known to your webserver.

> * Are there any special functions in PHP which make handling
>   a flat file database easy?

Check DB_File

> * When the user comes back later he would want to enter
>   restricted area using the earlier provided userid and password
>   How do I match the stored (encrypted) password with the one
>   used to log in.

user enters the userid and password. MD5 the two and then MD5 it with 
the server secret compare the final MD5 with that stored in your DB.

You might want to issue a ticket based on that validity of the userid / 
password combo which can be set as a cookie that way you dont have to 
validate userid and password on every screen.

You might want to discuss this on to LIP since it wont be of much use on 
LIH.



Mithun


_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to