FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Cookies

 


Diablosblizz
Hey, I was wondering if it is possible to store what type of template a user has selected?

For example. if there is a drop down box listing all the template, and you choose one, it would store what template you choose in a cookie and it would remember it until the cookie was removed.

Any ideas?
makli
Hi,

in every CMS I know the template a user chooses will be stored in the database.

If you want a template selection without user registration, you have to create a cookie and store the value for the template inside.

Everytime a user requests the page, you have to check if the cookie exists and then you have to select the previously choosen template.

HTH

Makli
snowboardalliance
Depends on how your site is written but it can be done with either php or javascript. Obviously, use php if you already use php (Or you can use ASP or whatever server-side scripting you're using.), and use javascript if not.
Diablosblizz
See, I don't understand how to store information. Thats why i am asking for help.
Reply to topic    Frihost Forum Index -> Scripting -> Others

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.