简体   繁体   English

php:重新发布参数

[英]php : repost the parameters

Is there a way in PHP to repost all the $_POST variables without having to create hidden fields ? 有没有办法在PHP中重新发布所有$ _POST变量而不必创建隐藏字段?

page1.php has form with many form elements and post them to page2.php page1.php具有包含许多表单元素的表单,并将它们发布到page2.php

page2.php reposts to page3.php without having to recreate all hidden fields page2.php无需重新创建所有隐藏字段即可转发到page3.php

You can store the values in a session . 您可以将值存储在会话中 page2.php sets them, page3.php reads them (and optionally deletes them). page2.php设置它们, page3.php读取它们(并可选择删除它们)。

不是单靠POST,而是你可以在page2.php上将每个POST变量复制到一个SESSION变量中,然后在page3.php中获取

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM