![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: PHP Style Switcher - XHTML 1.0 Strict Validation Error
then what does this close ?
<link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" /> <?php echo href=(!$_COOKIE["sitestyle"])?'default':$_COOKIE["sitestyle"].css /> ?> does the php code actually compile now ? also if that already closes the link tag then the href attribute is outside your link tag, means the css file won't be included. Does the page display as it should in a browser ?
__________________
Please don't click here |
|
|
|
|
|
#12 |
|
Newbie
Join Date: May 2009
Posts: 10
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
![]() OS:
|
Re: PHP Style Switcher - XHTML 1.0 Strict Validation Error
That particular closing tag should not be there - left over from when I was trying to get the code to validate.
Have now achieved that, but the script will not work now! Any ideas? |
|
|
|
|
|
#13 |
|
ƒ(ψ)=ΘΊΧφ
![]() |
Re: PHP Style Switcher - XHTML 1.0 Strict Validation Error
you can use something like this :
PHP Code:
|
|
|
|
| Thanked Users: | Strider (04-06-2009) |
|
|
#14 |
|
Newbie
Join Date: May 2009
Posts: 10
Thanks: 1
Thanked 1 Time in 1 Post
Rep Power: 0
![]() OS:
|
You, my friend, have just solved my problems. The piece of code validates as xhtml 1.0 strict, and the style switcher works - excellent!
My grateful thanks to bakuryu |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |