没有表单或GET方法的PHP数据持久性?
我需要能够在页面
调用之间创建一个变量持久化,而无需提交表单或将其作为名称值
对在URL中发送。我的另一个要求是我不能将
数据存储在cookie或文件中。这个
问题有什么解决方案吗?
I need to be able to make a variable persistent between page
invocations without submitting a form or sending it as a name-value
pair in the URL. Another requirement I have is that I can''t store the
data in a cookie or a file either. Are there any solutions to this
problem?
se ************ @ gmail.com schreef:
se************@gmail.com schreef:
我需要能够在页面
调用之间创建一个变量持久化,而无需提交表单或将其作为URL中的名称值
对发送。我的另一个要求是我不能将
数据存储在cookie或文件中。这个
问题有什么解决方案吗?
I need to be able to make a variable persistent between page
invocations without submitting a form or sending it as a name-value
pair in the URL. Another requirement I have is that I can''t store the
data in a cookie or a file either. Are there any solutions to this
problem?
好吧,SESSION是要走的路。
你还不完全清楚是否允许在
url / form / cookie(它可以通过所有3个传递)。
在这里阅读更多:
http://nl2.php.net/manual/en/book.session.php
如果这是别无选择,我就不会想到任何其他事情。
这就是为什么会议。
问候,
Erwin Moller
Well, SESSION is the way to go.
You were not completely clear if a sessionid is allowed in the
url/form/cookie (it can be passed around via all 3).
read more here:
http://nl2.php.net/manual/en/book.session.php
If that is no option I cannot think of anything else.
This is what sessions were made for.
Regards,
Erwin Moller
非常感谢。
干杯,
- 塞巴斯蒂安
Thank you very much.
Cheers,
- Sebastian
我假设没有办法模拟表格已经提交了
(例如:通过将带有隐藏元素的表单添加到
锚标记中)?
I am assuming then that there is no way to simulate that a form has
been submitted (ie: by emedding a form with a hidden element into an
anchor tag, for instance)?