PHP - Multiple CSS
Having different CSS allows you to create different appearances for the same website. Using PHP you can let your users choose their preferred style, by offering multiple style options and setting a cookie to store the user's preference.

[code]
<link rel="stylesheet" type="text/css" href="<?php echo (!$style)?'normal':$style ?>.css" />
[/code]


This code is placed on all your pages to point to the appropriate stylesheet. Unlike a normal stylesheets, we are using <?php echo (!$style)?'mainstyles':$style ?> instead of the stylesheet name. What this code says is: if no style is set in the cookies, use normal.css, but if a style is set, use stylename.css.

The style name is stored as $style.
Search
Request a free quote! Simply tick the boxes with the features you are interested in, fill in your name & e-mail. We assure a prompt response within 24 hours.
Menu Generator
Article System
Newsletter
Contact form generator
Photo Gallery
E-Card System
Blog
Links Management
Tell A Friend
FAQ
E-Catalogue
E-Hotel
E-State
Logo Changer
Search System
Online Payment
Name:
Email:
Get SEO certified with a competent SEO expert at eVenzia Technologies now! Read more about SEO Certification.
Cyprus SEO Certification
Become a web guru with our XHTML, SEO, PHP & MYSQL training courses! Availability of levels, approaches and successful results guaranteed! Suitable for personal and business use.