日期:2014-05-17 浏览次数:20477 次
function submit_login(e)请问这两个用户名密码的表单如何提交到后台php的
{
if (typeof e != 'undefined' && !enter_key_trap(e)) {
return;
}
if (document.horde_login.horde_user.value == "") {
alert("<?php echo addslashes(_("Please provide your username and password")) ?>");
document.horde_login.horde_user.focus();
return false;
} else if (document.horde_login.horde_pass.value == "") {
alert("<?php echo addslashes(_("Please provide your username and password")) ?>");
document.horde_login.horde_pass.focus();
return false;
} else {
document.horde_login.loginButton.disabled = true;
<?php if (!empty($ie_clientcaps)): ?>
try {
document.horde_login.ie_version.value = objCCaps.getComponentVersion("{89820200-ECBD-11CF-8B85-00AA005B4383}", "componentid");
} catch (e) {
}
<?php endif; ?>
document.horde_login.submit();
return true;
}
}