Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想创建两种不同的形式。在第一种形式中,用户可以输入数据。根据第一步中给出的数据,我想在第二个表格中准备一些预填充的数据。
有可能这样做吗?
对不起我的英语不好。
谢谢
是的,这是完全可能的。
一旦发送了第一个表格,您就可以验证并检查数据。如果满足您的条件,您会将数据存储在其中session,然后将用户重定向到第二个表单。
session
一旦正确验证了第二个表单,您就可以使用session当前表单数据中的数据来做任何您想做的事情。