旧问题(也许):使用POST数据重定向? [英] old question (perhaps): redirect with POST of data?

查看:66
本文介绍了旧问题(也许):使用POST数据重定向?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之前肯定曾经问过的一个问题,我已经用谷歌搜索了等等。

的答案没有确定的结果...


我'我喜欢我的PHP脚本将客户端浏览器重定向到另一个页面,

同时发布一些数据。 (将它们带回到html页面

显示需要更正的表单,因为缺少某些数据。)

我相信这对我来说要么棘手要么不可能我看过了,但是

我只想看看别人当前的想法......


这有点烦人,因为简单的重定向很容易和简单的POST

到一个URL(并得到结果)也很容易,但结合起来

似乎是另一回事......


谢谢!

alex

A question that has certainly been asked before and I''ve googled etc.
for answers with no certain outcome...

I''d like my PHP script to redirect the client browser to another page,
POSTing some data at the same time. (To take them back to an html page
showing a form that needs correcting because some data is missing.)
I believe this is either tricky or not possible from what I''ve seen, but
I''d just like to see what others think currently...

It''s a little annoying because plain redirecting is easy and plain POST
to a URL (and get the results back) is easy too, but combining them
seems to be another matter...

thanks!
alex

推荐答案

Alex Hunsley写道:
Alex Hunsley wrote:
以前肯定已被问到的一个问题,我已经用Google搜索等等
没有确定结果的答案...

我希望我的PHP脚本能够重定向客户端浏览器到另一个页面,
同时发布一些数据。 (将它们带回到html页面
显示需要更正的表单,因为缺少某些数据。)
我相信这可能是我所见过的或者不可能,但是
这有点令人讨厌,因为简单的重定向很简单,而且对URL很简单(并获得了结果回来)也很简单,但结合起来
似乎是另一回事......

谢谢!
alex
A question that has certainly been asked before and I''ve googled etc.
for answers with no certain outcome...

I''d like my PHP script to redirect the client browser to another page,
POSTing some data at the same time. (To take them back to an html page
showing a form that needs correcting because some data is missing.)
I believe this is either tricky or not possible from what I''ve seen, but
I''d just like to see what others think currently...

It''s a little annoying because plain redirecting is easy and plain POST
to a URL (and get the results back) is easy too, but combining them
seems to be another matter...

thanks!
alex



使用会话,发布和获取的组合。


如果您希望源代码限制为一个文件,则传递参数


use a combination of sessions, post and get.

If you want the source code limited to one file then pass parameters on
the


_GET参数列表。如果您使用会话然后通过会话变量传递一些信息

,也可以使用
_GET parameter list. If you use sessions then pass some of the info
via session variables, also use


_POST表单,各种方式,取决于

什么适合您的要求

_POST forms, all sorts of ways, depends
what works for your requirements


这篇关于旧问题(也许):使用POST数据重定向?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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