重新生成表单数据 [英] RePOSTing form data

查看:148
本文介绍了重新生成表单数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨大家好,

我正在编制一份注册表格,将其数据记录在我们网站的数据库中,然后将用户转发到另一个网站的费用处理页面发生。另一个网站的页面使用我的表单中的POST数据来填充其字段和记录。


如何让我的网站在用户之后再次将POST数据发送到其他网站我已经点击了我的结束上的提交按钮,它已被发送到我的一个页面进行处理?


提前谢谢!

Hi folks,

I am working on a registration form that records its data in a database on our Web site then forwards the user to another site''s page where fee processing occurs. The other site''s page uses POST data from my form to populate its fields and records.

How do I get my site to send POST data again to the other site after the user has already clicked the Submit button on my end and it has been sent to one of my pages for processing?

Thanks in advance!

推荐答案

您可以使用发布数据填充表单中的一些隐藏输入,然后将表单发送到其他网站。
You could populate some hidden inputs in a form with the post data, then send the form to the other website.


必须说我不清楚您的情况


你控制另一个网站了吗?

你是否正在向客户填写表格,提交,然后离开你的网站去你的网站不控制,然后回来并获得信息?


如果第二种情况更接近您的情况,我会将所有的后期变量存储到会话变量中,然后在任何页面上存储希望您可以检查它们是否已设置,并预先确定ei隐藏(如上所述)或带有值的可见字段。
Must say I don''t clearly understand your situation

Do you control the other site?
Are you reffering to the customer filling out your form, submitting, then leaving your site to go to a site you do not control, then comming back and having the info?

If the second scenario is closer to your situation, I would store all the post variables into session vars, then on any page you want you can check if they are set, and prepoulate either hidden (as stated above) or visible fields with their values.



您可以使用发布数据填充表单中的一些隐藏输入,然后将表格发送到其他网站。
You could populate some hidden inputs in a form with the post data, then send the form to the other website.



如何在不要求用户点击提交按钮的情况下获取重新提交的隐藏输入?

How do you get the hidden inputs to resubmit without requiring a user to click on a Submit button?


这篇关于重新生成表单数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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