First, get settings, make array, serialize, and set cookie
<?
$submit= $HTTP_POST_VARS['submit'];
$ColorMix = $HTTP_POST_VARS['ColorMix'];
if ($submit=='submit'){
$fs=$HTTP_POST_VARS['textSize'];
if ($ColorMix=='WhiteOnBlack'){
$fc='white';
$bg='black';
$allSettings=array($fs,$fc,$bg)...
That was the code I tried. Can you see any problems?
Also, I have read that the time of the cookie sometimes could cause problems due to the difference between the server time and the user's machine time? Do you know anything about that?
Thanks for the reply.
I tried that, but the whole thing stopped working on both servers. when I unserialize and print the values out, nothing prints. If I print before unserializing, it prints the values with some slashes and extra charactors. Tried to add stripslashes, but still same problem...
Another question about the cookies!
One of my scripts will set cookie to change the prefrence of the user on how the site looks. The problem that it does not load the new settings untill the user hit refresh button manually on his browser.
Is there any way to make it load automatically after...
I have dynamic css.php that user can customize by changing different settings through a form. The form will set a cookie with an array of the settings. This works fine on a linux server. But When I tried it on a windows server, it does not work. When I print the values of the cookie, does not...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.