FB 警告错误地关闭了我的脚本。
我有一个功能齐全的 php/html 脚本(如果不在 FB 内运行,则在 FB 内运行了几个月,直到最近,在 FB 外)。当在 FB 中运行时,如果在第一个 html 表单运行后尝试运行第二个 html 表单,我会收到以下警告...
应用程序暂时不可用 运行时错误:
不能在表单内嵌套表单
问题#1:我可以关闭 FB 警告系统吗?如果是这样怎么办?
问题#2:对于像下面这样基本的脚本(下面是我的实际脚本的释义示例),为什么 FB 会发出如上所示的警告。在 FB 中运行时的行为是第一个窗体显示并按预期运行,但第二个窗体甚至不显示,因为 FB 中断执行并发出上述警告。正如你所看到的,我不是“嵌套”形式。注意:如果不在 FB 内运行,实际脚本可以正常运行,因此不受 FB 警告代码的影响。
代码示例(仅显示问题区域):
<?php
.
.
.
echo "
<form name='FBregister method='get' target='_self'>
<input type='submit' value='REGISTER' name='FBlogin' >
</form>
<form name='FBloginSubmit' method='get' target='_self'>
<input type='submit' value='LOGIN' name='FBlogin' >
</form>
.
.
.
?>
感谢所有帮助。 鲍勃·G。
I have a php/html script that is fully functional (has run for many months both within FB until recently and outside of FB) if not run within FB. When run within FB I get the following warning if a second html form attempts to run after a first html form runs...
App Temporarily Unavailable
Runtime errors:
cannot nest form within a form
Question #1: Can I turn off the FB Warning system? If so how?
Question #2: Why would FB Warn as shown above for a script as basic as the one below which is a paraphrasing example of my actual script. The behavior when run within FB is that the first form is displayed and behaves as expected but the second form is not even displayed because FB cuts off execution and puts out the warning mentioned above. As you can see, I'm not "nesting" forms. NOTE: The actual script runs fine if not run within FB and, therefore, not subject to FB's Warning code.
Code sample (Problem area only shown):
<?php
.
.
.
echo "
<form name='FBregister method='get' target='_self'>
<input type='submit' value='REGISTER' name='FBlogin' >
</form>
<form name='FBloginSubmit' method='get' target='_self'>
<input type='submit' value='LOGIN' name='FBlogin' >
</form>
.
.
.
?>
All help is appreciated.
Bob G.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论