php - 在 IE 和 Safari 中提交表单时,Iframed 页面出现 session 过期问题

标签 php javascript html iframe fancybox

您好,我在我的网站上使用第三方订单表单,该表单由 iframe 显示。 使用 IE 或 Safari 时,iframe 拒绝接受表单提交,并显示错误框“ session 已过期”

页面是: http://prepaidnuller.nl/gratisprepaid.php

如果您点击 bestel 按钮,您只需点击页面下方的“volgende”,您就会收到一个错误框,提示 session 已过期(IE 和 Safari),其他浏览器可以正常工作。

当关闭 iframe,然后手动刷新上面的页面,然后重新尝试提交表单时,整个事情都会被接受。

关于 IE 和 Safari 如何接受表单提交有什么解决方案吗?并且不显示 session 已过期。

最佳答案

我的赌注?

No DOCTYPE Declaration could be found or recognized in this document. This generally means that the document is not declaring its Document Type at the top. It can also mean that the DOCTYPE declaration contains a spelling error, or that it is not using the correct syntax.

Fancybox(像大多数 jQuery 插件一样)需要在标准模式下运行,这意味着必须设置正确的 DOCTYPE 声明。

检查this good article对于更多或简单的设置,将其设置为文档的第一行:

<!DOCTYPE html>

顺便说一句,由于您使用的是 fancybox v1.3.4 以及内联内容,请注意 THIS BUG及其解决方法。

关于php - 在 IE 和 Safari 中提交表单时,Iframed 页面出现 session 过期问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12940120/

相关文章:

javascript - 从 DOM 中删除元素

php - 如何为在线约会网站设计用户表?

javascript - 如何使用 Selenium 获取链接 href?

javascript - 使用多个正则表达式进行输入验证

javascript - 当数据库中有\n 时,在浏览器中显示新行 <br>

javascript - AJAX 在提交时返回数据两次

php - MySQL:查询中的符号

php - MySQL在使用$_REQUEST获取值后插入NULL值

php - 有没有办法列出外部 php 扩展,而不是这些已经在 php.exe 中编译的扩展?

javascript - href 链接并在同一输入文本中进行编辑