// set the passwort in session to fill the hidden login form with revertet and base64 encoded pass // the *yourkey* must the same string as in autologin.php to replace this after revert and decode $_SESSION['userpassword'] = strrev(base64_encode('*yourkey*'.$_POST['password'])); echo '
'; ?> the submit is possible with a submit button in the form field or with a standard link thats submit the form by click. The target by submit with document.forms.roundcubelogin.submit() is set in the form dont set target in the a link. e.g. linktext image