日期:2014-05-17  浏览次数:20455 次

请教一个原理问题
function submit_login(e)
{
    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;
    }
}
请问这两个用户名密码的表单如何提交到后台php的

------解决方案--------------------
贴出的表单html代码
print_r($_REQUEST) ; 看看
------解决方案--------------------
document.horde_login.submit();
执行名为 horde_login 的表单的 submit 方法(提交表单)
------解决方案--------------------
如果你说的是没有创建iframe的话 代码中 f.height="100%"; f.width="100%" 就可以了