[SOLVED]Cookie
Posted: Mon Aug 07, 2006 12:27 pm
Hey,
I'm setting a cookie on the user that's logging in so next time he visits the site his username is saved in the box.
I'm trying to show the cookie by doing this:
But it doesn't work. the class=\"login_input\" gets in the value as well etc etc.
Thanks,
David
I'm setting a cookie on the user that's logging in so next time he visits the site his username is saved in the box.
I'm trying to show the cookie by doing this:
Code: Select all
$login1 = "<form action=\"index.php\" method=\"post\">
Användanamn:<br />
<input name=\"username\" ";
$login1 .= "value=";
$login1 .= $_COOKIE['Username'];
$login1 .= "class=\"login_input\" type=\"text\"/><br />
Lösenord:<br />
<input class=\"login_input\" type=\"password\" name=\"password\" /><br />
<input type=\"submit\" value=\"Logga in\" name=\"submit\"/>
</form> ";Thanks,
David