SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    Toronto, Canada
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why doesn't "\t" render a full tab

    I'm following Kevin's book on mySQL & PHP programming, and have run into a problem. With another book I've read, using the \n & \t would render a new-line & a tab, respectively.

    I thought using a \t would cause a tab to appear... I'm trying it like so:

    echo("<li>$name \t" .
    "[<a href='editauthor.php?id=$id'>Edit</a> | " .
    "<a href='deleteauthor.php?id=$id'>Delete</a>]" .
    "</li>");

    Is there any reason why it wouldn't appear 1-tab away? Any clarification would be much appreciated.


    Thanks,
    ...Frank
    ...Shakes


    "Whether you think you can, or you think you can't, you're right!"

  2. #2
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    well, tabs, just like newlines, don't show up in HTML. they do in the source, but not what you're viewing. the only time they would is inside of <pre> tags or something. check your source code and the tab will be there.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  3. #3
    SitePoint Enthusiast
    Join Date
    Mar 2002
    Location
    Toronto, Canada
    Posts
    92
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Dr. Pepper

    My mistake... I should have realized that it would only show up in the code.

    To achieve a full tab, would my best bet be to use the <TAB> tag, or is there a newer standard I'm not aware of?


    Thanks for that kick!


    ...Frank
    ...Shakes


    "Whether you think you can, or you think you can't, you're right!"

  4. #4
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    79
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try something like <blockquote>


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
  •