hi everybody, i want to create a user login system. i have this code in ASP: <? Response.$Cookies["username"] = trim(request("username")); Response.$Cookies["password"] = trim(request("password")); Response.$Cookies["username"].$Expires = dateadd("n",+30,now()); Response.$Cookies["password"].$Expires = dateadd("n",+30,now()); ?> <? $username = Request.$Cookies["username"]; $password = Request.$Cookies["password"]; ?> HTML: can anyone to translate this code to PHP? thanks in advance.
<? setcookie("username", trim($_POST['username']), time() + 60*30); ?> <? $username = $_COOKIE['username']; ?> PHP: You remind me of myself when I was moving from ASP to PHP Good luck.