From: "Phpu" <[EMAIL PROTECTED]>

> How can i make a registration form that will remember
> my username and password every time i login from the same computer?
> I think i should set a cookie but i don't know how.

http://us2.php.net/setcookie

Don't put the username and password in the cookie. You need to set a unique
identifier in the cookie that is related to the username and password on the
server side. md5() and uniqid() can come in handy for this.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to