PHP将数据发送到已打开的PHP窗口 [英] PHP send data to already opened PHP window

查看:88
本文介绍了PHP将数据发送到已打开的PHP窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,
我有一个php页面(P1.php),该页面通过POST方法将一些变量发送到P2.php来打开第二个php页面(P2.php).

现在,我想将更新后的变量从P1.php发送到相同的已打开页面P2.php,而无需通过POST打开P2.php的新实例.

我怎样才能做到这一点?请帮忙吗?

在Advance中致谢

Hi All,
I have one php page(P1.php), which opens the second php page(P2.php) by sending some variables to P2.php by POST Method.

Now I want to send updated variable from P1.php to the same already opened page P2.php without opening a new instance of P2.php by POST.

How can I do this? Please help?

Thanks in Advance

推荐答案

您可以考虑使用锚标签,并将目标属性设置为您选择的适当名称:HTML< a> target属性 [^ ].
如果您更喜欢通过JavaScript进行操作,则可以使用 name参数指定指定的窗口来使用window.open [ ^ ]实例要使用.

问候,

曼弗雷德(Manfred)
You could consider using an anchor tag with a target attribute set to suitable name of your choice: HTML <a> target Attribute[^].
If you prefer to do this via javascript you can use window.open using the name parameter to specify a named window[^] instance to use.

Regards,

Manfred


这篇关于PHP将数据发送到已打开的PHP窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆