Remember value/checkbox does not get POSTed

I have a form with an email/password field and a remember me checkbox.

My problem is that the remember me option is not passed to the POST array…
Here is the form:

<form id='login' method="post" action="" >

    
    
    <label for="email" >Username/e-mail:</label><span class="asterisk">*</span>
    <input name="email" id='email' type="email" size="40" ><br>

    <label for="password">Password:</label><span class="asterisk">* </span>
    <input id='password' name="password" type="password" size="40" ><br></br>
    
     <input id="input_rememb" type="checkbox" name="remember" value="1" />
     <label for="input_rememb">Remember me</label>
     <input id='submit' name="submit" type="submit" /><br/>
     <!--<div id="input_rem">-->
     
     <!--</div>-->
     <a href="forgotpass.php">Forgot your password;</a>

  </form>

Do you see anything wrong with the above markup?

How do you check it in PHP?

I don’t mean to sound condescending; really. But I must ask.

Are you checking the box before the submit? Or leaving it unchecked? If it is not checked, it doesn’t exist in POST (or GET, for that matter.) Also, are you using proper case on both the form and the processing page? Also, form posts the NAME, not the ID, so you should be checking for “input_rememb”, not “remember”.

HTH,

:slight_smile:

I found the problem after all…I was not even sending the value to the script that is suppose to go.

D’OH!! Yep… I’ve done that, before. Heh… Glad you got it worked out.

V/r,

:slight_smile:

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.