![]() |
|
|||||||
| Notices |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2009
Age: 27
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
![]() OS:
|
PHP Styleswitch validation issues
Hi, I wondered if anyone could help. I'm getting errors when validating my webpage.
Here is the code in question, it switches stylesheets: Code:
<?php $stylesheet = '<link rel="stylesheet" type="text/css" media="screen" title="User Defined Style" href="Style/' . ((!$_COOKIE["sitestyle"])?"default":$_COOKIE["sitestyle"]) . '.css" />'; print $stylesheet; ?> Validation Output: 3 Errors
Thanks, marc |
|
|
|
|
|
#2 |
|
Support Staff
![]() Join Date: Oct 2009
Location: Cincinnati, Ohio
Age: 21
Posts: 17
Thanks: 1
Thanked 2 Times in 2 Posts
Rep Power: 0
![]() OS:
|
Re: PHP Styleswitch validation issues
Try this:
PHP Code:
__________________
Regards, Ryan Ashbrook TechTalkz Support Staff |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
< Windows Help - MS Office Help - Hardware Support >
| New To Site? | Need Help? |