php - autocomplete = off does not work when I try to disable remember me -


i'm working on website, , put login form , signup form on same page. when let browser save password, signup form's nickname input , password input auto-completed. set 2 inputs autocomplete='off', doesn't work. wonder why.

test in firefox.

this code:

class loginform extends form { public function __construct($name = null) {     // want ignore name passed     parent::__construct('login');     $this->setattribute('method', 'post');     $this->add(array(             'name' => 'accountname',             'attributes' => array(                     'class' => 'input-block-level',                     'id'    => 'id_accountname',                     'type'  => 'email',                     'placeholder' => 'email address',                     'onblur'  => 'accountnamevalid(this.value)',                     'autocomplete' => 'off',             ),             'options' => array(                     //'label' => 'user',              ),     ));     $this->add(array(             'name' => 'nickname',             'attributes' => array(                         'id'    => 'id_nickname',                 'class' => 'input-block-level',                 'type'  => 'text',                     'placeholder' => 'nickname',                     'onblur'  => 'nicknamevalid(this.value)',                     'autocomplete' => 'off',             ),             'options' => array(                     //'label' => 'user',              ),     ));     $this->add(array(             'name' => 'password',             'attributes' => array(                     'class' => 'input-block-level',                 'type'  => 'password',                     'placeholder' => 'password',                 'onkeyup' => 'passwordvalid(this.value)',                 'autocomplete' => 'off',             ),             'options' => array(                     //'label' => 'password',              ),     ));     $this->add(array(             'name' => 'confirmpwd',             'attributes' => array(                 'class' => 'input-block-level',                 'type'  => 'password',                 'placeholder' => 'password again',                 'onkeyup' => 'passwordagainvalid(this.value)',                 'autocomplete' => 'off',             ),             'options' => array(                     //'label' => 'password',              ),     ));     $this->add(array(             'name' => 'login_accountname',             'attributes' => array(                     'class' => 'input-block-level',                     'id'    => 'id_login_accountname',                     'type'  => 'email',                     'placeholder' => 'email address',                     'autocomplete' => 'off',             ),             'options' => array(                     //'label' => 'user',              ),     ));     $this->add(array(             'name' => 'login_password',             'attributes' => array(                     'id'    => 'id_login_password',                     'class' => 'input-block-level',                     'type'  => 'password',                     'placeholder' => 'password',                 'autocomplete' => 'off',             ),             'options' => array(                     //'label' => 'password',              ),     ));  } } 


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -