function getRememberMeEmail() { if (checkRemembered() === "checked") { return $_COOKIE["remember_me_email"]; } else { return ""; } }
" class="form-signin"> <h3 class="form-signin-heading">Log in</h3> <label for="input-email" class="sr-only">Email address</label> <input name="email" value="<?php echo getRememberMeEmail(); ?> " id="input-email" type="email" class="form-control" placeholder="Email address" required="required" autofocus="autofocus" /> <label for="input-password" class="sr-only">Password</label> <input name="password" id="input-password" type="password" class="form-control" placeholder="Password" required="required" /> <label> <a id="forgot-password" href="#">Forgot Password?</a></label> <br> <div class="checkbox"> <label for="remember-me"> <input id="remember-me" name="remember_me" value="remember_me" type="checkbox" <?php echo checkRemembered(); ?> /> Remember Me </label> </div> <input id="login-submit" type="submit" value="Sign in" class="btn btn-lg btn-primary btn-block" /> <input id="login-submit-disabled" type="submit" value="Sign in" class="btn btn-lg btn-default btn-block" disabled="disabled" /> </form> <br /> <br /> </div> </div> </div> <div class="my-footer"></div>