创建一个cookie以在后台存储信息 [英] Create a cookie to store information on background
问题描述
嗨
希望有人能在这里为我提供帮助.
我已将页面设置为具有动态背景(使用PHP)
但是当我更改页面时,背景消失了.
我需要知道,如何创建一个以后台为目标并在您更改页面时保持后台处于活动状态的Cookie(IN PHP).
我有3种不同的选择(红色,绿色和蓝色).
因此,如果该人改变主意,想要改变其颜色,我还需要使Cookie发生变化.
我的网站网址在这里:http://www.uuilliam.net/zombies
它只是一个带有一些填充文本的快速抛出模板.
非常感谢您的答复.
Hi
I hope someone can help me here.
I have set my page up with a dynamic background (using PHP)
but when I change page, the background disappears.
I need to know, how to create a cookie (IN PHP) that will target the background and keep the background active as you change page.
I have 3 different options (red, green and blue.)
so I will also need to be able to make the cookie change if the person changes their mind on which colour they want.
my website URL is here : http://www.uuilliam.net/zombies
it is just a quick thrown up template just now with some filler text.
I appreciate and anticipate your replies.
推荐答案
在PHP5中,可以借助
In PHP5 this can be done with the help of
_COOKIE superglobal来完成.
_COOKIE superglobal.
我知道
这篇关于创建一个cookie以在后台存储信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!