PHP& localStorage的; [英] PHP & localStorage;

查看:86
本文介绍了PHP& localStorage的;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PHP中搜索了localStorage的使用,因为我需要将localStorage数据作为$ var,在PHP中使用,并且使用它在PHP中使用。这可能吗?



如果有人知道任何良好的HTML5资源,除了在Google上容易找到的资源外,请分享。

c> localStorage 是保存在客户端的东西。没有数据传输到服务器端。



您只能使用JavaScript获取数据,并且可以使用Ajax将其发送到服务器端。


I've searched around for use of localStorage in PHP, as I need to get localStorage data as a $var, in PHP and do stuff in PHP with it. Is this possible?

P.S. If anybody knows any good HTML5 resources, other than what can be easily found on Google, please share.

解决方案

localStorage is something that is kept on the client side. There is no data transmitted to the server side.

You can only get the data with JavaScript and you could sent it to the server side with Ajax.

这篇关于PHP& localStorage的;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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