SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Zealot
    Join Date
    Feb 2009
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    easy question about including a php variable inside an href?

    this doesn't seem to be working.. what am I missing?

    PHP Code:
    <link rel=StyleSheet Href="<?php $siteroot ?>/whatisdamon.css" type="text/css" media=screen>

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    5,033
    Mentioned
    103 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
    <link rel=StyleSheet Href="<?php echo $siteroot?>/whatisdamon.css" type="text/css" media=screen>
    You need to echo it.
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator

  3. #3
    SitePoint Zealot
    Join Date
    Feb 2009
    Posts
    194
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    that was record speed. holy crap i did not deserve that kind of service. it was a terrible question so i feel kinda embarassed and will show myself out. but not before mentioning that babylon5 is the best! (your side, their side and the truth!)


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •