Stylesheet chooser<

liunx

Guest
OK, I figured out how to make a stylesheet chooser, but it only applies to the page after they hit submit.

What I think I need to do is use cookies or something so it remembers what style they choose, that way it will work on all pages and the style should stay if they come back later.

Is there a way to do this without cookies? because I don't have a clue how to use cookies and a lot of people don't like them.ok, I decided I'd use cookies, but I can't find any PHP Cookie tutorials or anything, could someone point me in the right direction please?er... I know how to use cookies now (i think) but for some reason I'm not having luck with IF.

Can someone tell me what is wrong with this: $style=$_GET['style'];
if ($style != '') {
setcookie("stylesheet","$style");
$ssheet = $style;
} else {
if ($stylesheet = '') {
$ssheet = '_darkblue_style.css';
} else {
$ssheet = $stylesheet;
}
}if ($stylesheet = '') {

must be

if ($stylesheet == '') {wow, an entire page of code that was worth squat now works perfect because of a dang equals sign, good work my man :D
 
Back
Top