View Full Version : "remember me" value

09-25-2004, 11:46 PM
How do you pass a "remember me" value through as hidden, so it is always checked, but you cannot see it. Is this correct?

"<input name="rememberme" type="hidden" class="radiocheck" value="1" checked>"

09-26-2004, 12:02 AM
Why would you want to do this... it should be the users choice to be remembered, for security reasons...

<input name="rememberme" type="hidden" value="1">

09-26-2004, 01:56 AM
It sounds like you want the functionality of a Session variable

$_SESSION["rememberMe"] = true;

//Then you can access it the following way:

if($_SESSION["rememberMe"]) {
//remember Me code

See http://us2.php.net/manual/en/function.session-start.php for more info

09-26-2004, 03:35 AM
Actually, I think he might be talking about setting a cookie value.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum