douqian1835 2016-08-31 11:08
浏览 157
已采纳

将$ _GET变量从Wordpress页面传递到外部iFrame

I have searched throughout all of the internets to fix this issue - I am sure this can be done! I am trying to pass a $_GET variable into an external page that is accessed through an iframe. My website is done on Wordpress and I have downloaded a plugin to use an iframe so that I can show a page that contains PHP. This is the way it works:

The page on Wordpress should have a $_GET parameter in its URL (like this: http://www.url.com/page/refer-a-friend/?source=CRM)

I need to access this $_GET parameter inside my iframe. The iframe src is a page I do not have on Wordpress but that is on my server (it's like an external link).

I feel like I have given all the information I can but if not please feel free to ask and I can elaborate. It's driving me crazy! Thanks.

Please note I am passing the iFrame through the shortcode. [iframe src="https://www.globaleye.com/external/refer.php" width="100%" height="500"]

  • 写回答

3条回答 默认 最新

  • douzhai7873 2016-08-31 11:12
    关注

    Edit:

    [iframe src="globaleye.com/external/refer.php?YOUR_VARIABLE=true"; width="100%" height="500"]
    

    if you used more than one variable pass so you use an advanced iframe plugin so it is good for you.

    [advanced_iframe securitykey="key" url_forward_parameter="SECOND_VARIABLE" src="globaleye.com/external/refer.php?YOUR_VARIABLE=true"]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 Ubuntu20.04.4.LTS系统如何下载安装VirtualBox虚拟机?
  • ¥15 如何用QDomDocument读取内容为空格的xml数据
  • ¥15 请阅读下面代码,帮我修改下代码
  • ¥15 关于#microsoft#的问题:电脑启动后不显示桌面图标和窗口,除任务栏外无法操作任何东西
  • ¥15 如何输入百度,显示本地下载的html文件页面,地址栏还显示百度的地址
  • ¥15 通过kinect制作换装程序但是服装不贴合(标签-ar)
  • ¥20 matlab如何绘制三维瀑布图
  • ¥15 关于用abap来解决动态规划的问题,但是要求输出索引值,这个是难点
  • ¥15 在ISIS中什么是IP从地址
  • ¥15 压测时,并发量过高时,响应时间出现尖刺