I my login form if I dont check remember me check box in php script it gives <b>Notice</b>: Undefined index: autologin in
error. in my .php file I have
$check_autologin = $_POST['autologin'];
And I am checking is user checked it
if($check_autologin == 1)
{
$password_hash = $encrypted_mypassword;
setcookie ($cookie_name, 'usr='.$username.'&hash='.$password_hash, time() + $cookie_time);
}
and this is my check box field <input type="checkbox" name="autologin" value="1">Remember Me<br />
How could check box can return any default value if it is not checked?