What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » php/css switcher...?

php/css switcher...?
Author: Message:
Ezra
Veteran Member
*****

Avatar
Forgiveness is between them and God

Posts: 1960
Reputation: 31
37 / Male / Flag
Joined: Mar 2003
RE: php/css switcher...?
You'll have to use Cookies or Sessions and then use that
code:
<?php
$myStyleColour = $_POST['styleColour'];

if($myStyleColour=="red"){
print '<link rel="stylesheet" type="text/css" href="css/styles2.css" />';
} else{
/*if($myStyleColour=="normal")*/
print '<link rel="stylesheet" type="text/css" href="css/styles.css" />';
}
?>

on the pages where you want to switch the styles, but you'll also need another script to actually do the switching and set the Cookie or session accordingly
[Image: 1-0.png]
             
02-08-2008 03:53 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
php/css switcher...? - by joey on 02-08-2008 at 01:24 PM
RE: php/css switcher...? - by ShawnZ on 02-08-2008 at 01:27 PM
RE: php/css switcher...? - by joey on 02-08-2008 at 01:30 PM
RE: php/css switcher...? - by Ezra on 02-08-2008 at 03:53 PM
RE: php/css switcher...? - by ShawnZ on 02-09-2008 at 10:15 AM
RE: php/css switcher...? - by joey on 02-09-2008 at 04:54 PM
RE: php/css switcher...? - by ShawnZ on 02-09-2008 at 07:49 PM
RE: php/css switcher...? - by Fruit on 02-10-2008 at 07:47 PM
RE: php/css switcher...? - by joey on 02-16-2008 at 08:37 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On