Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Sep 2004
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    "remember me" value

    How do you pass a "remember me" value through as hidden, so it is always checked, but you cannot see it. Is this correct?
    PHP Code:
    "<input name="rememberme" type="hidden" class="radiocheck" value="1" checked>" 

  • #2
    Regular Coder dniwebdesign's Avatar
    Join Date
    Dec 2003
    Location
    Carrot River, Saskatchewan
    Posts
    838
    Thanks
    15
    Thanked 9 Times in 9 Posts
    Why would you want to do this... it should be the users choice to be remembered, for security reasons...

    PHP Code:
    <input name="rememberme" type="hidden" value="1"
    Dawson Irvine
    CEO - DNI Web Design
    http://www.dniwebdesign.com

  • #3
    Regular Coder
    Join Date
    Apr 2004
    Location
    Los Angeles
    Posts
    133
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It sounds like you want the functionality of a Session variable

    PHP Code:
    session_start();
    $_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

  • #4
    Regular Coder
    Join Date
    Aug 2004
    Location
    The US of A
    Posts
    767
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Actually, I think he might be talking about setting a cookie value.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •