没有表单或GET方法的PHP数据持久性? [英] PHP data persistence without forms or GET methods?

查看:49
本文介绍了没有表单或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)?


这篇关于没有表单或GET方法的PHP数据持久性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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