First off, I would mysql_real_escape()
any string you pass to MySQL. Secondly, your problem is once someone logs in, the $_POST
for the username and password are no longer passed to the page. You need to set a cookie using $_COOKIE['name']="value"
containing the username and password and get the username and password from that instead of $_POST
. Please know, this is very weak security. You should not only md5()
you passwords, but instead of storing a password in a cookie, use a unique session id.
FlashCreations 20 Posting Whiz
Dukane commented: OOOPS! I meant to type out what you typed out, but thank you for pointing out my mistake! Good catch! +3
FlashCreations 20 Posting Whiz
woocha commented: thanks for the help !! +3
FlashCreations 20 Posting Whiz
FlashCreations 20 Posting Whiz