首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

请问一个原理有关问题

2013-07-11 
请教一个原理问题function submit_login(e){if (typeof e ! undefined && !enter_key_trap(e)) {return

请教一个原理问题

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%" 就可以了


[解决办法]
我在页面里执行了一下 加上就可以出来iframe

热点排行