【发布时间】:2012-11-21 05:50:12
【问题描述】:
如何在 drupal 6 中找到当前页面的调用者页面的 url。
有什么函数或类吗?
提前致谢。
【问题讨论】:
-
已解决:我在上一页中使用了一个带有隐藏输入的表单,并将一个特定的变量传递给当前页面。在主页中检查变量的值是否存在。
如何在 drupal 6 中找到当前页面的调用者页面的 url。
有什么函数或类吗?
提前致谢。
【问题讨论】:
使用$_SERVER['HTTP_REFERER'] 获取调用者页面的url。但它有一些错误。
The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted.
【讨论】: