$ _POST在脚本跳跃中存在吗? [英] Does $_POST survive script hopping?

查看:60
本文介绍了$ _POST在脚本跳跃中存在吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个HTML表单,将数据发送到PHP脚本,发布

方法。


如果此脚本生成一个页面当用户点击

链接时,

后一个脚本会获得前者的$ _POST数据吗?

如果没有,是否有一种直接的方式(即:不保存文件或

cookies)来发布不使用表格的数据到后一个脚本?


TIA的评论...

Suppose I have an HTML form that sends data to a PHP script, "post"
method.

If this script generates a page with a link to another script, will the
latter script get the former''s $_POST data when the user clicks on the
link?

If not, is there a straightforward way (i.e.: no saving to files or
cookies) to "post" the data to the latter script without using a form?

TIA for your comments...

推荐答案

_POST数据当用户点击

链接时?


如果没有,是否有一种直接的方式(即:不保存到文件或者

cookies)来发布不使用表格的数据到后一个脚本?


TIA征求意见...

_POST data when the user clicks on the
link?

If not, is there a straightforward way (i.e.: no saving to files or
cookies) to "post" the data to the latter script without using a form?

TIA for your comments...


On 2008年2月6日星期三00:15:42 +0100,Zorque< zo ** @ 127.0.0.1wrote:
On Wed, 06 Feb 2008 00:15:42 +0100, Zorque <zo**@127.0.0.1wrote:

假设我有一个发送数据的HTML表单到一个PHP脚本,发布

方法。


如果这个脚本生成一个带有另一个脚本链接的页面,那么

后一个脚本在用户点击

链接时获取前's
Suppose I have an HTML form that sends data to a PHP script, "post"
method.

If this script generates a page with a link to another script, will the
latter script get the former''s


_POST数据?
_POST data when the user clicks on the
link?



No.

No.


如果没有,是否有直接的方式(即:不保存到文件或

cookies)来发布不使用表单的数据到后一个脚本?
If not, is there a straightforward way (i.e.: no saving to files or
cookies) to "post" the data to the latter script without using a form?



编号要么以某种方式使用会话或卷曲来实现这一点。


-

Rik Wasmus

No. Either use sessions or curl in some way to achieve this.

--
Rik Wasmus


这篇关于$ _POST在脚本跳跃中存在吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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