SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Quake 1 Addict CreedFeed's Avatar
    Join Date
    Feb 2002
    Location
    Milwaukee, WI
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    PHP Question: How To Accomplish This?

    I'm pulling data for news articles out of a database. Two fields I have are "custom_linkname" and "custom_url" which are used if I'd like to add a custom link at the bottom of the story to point to an outside page reference or a certain thread in my own forums. What I'd like to do is if the url points to an outside website have it open in a blank window (i.e. add target="_blank" to the link tag) and if it points to a page within my website, open it in the same window. How would I go about checking and adding the target to the link tag?
    -- Steve Caponetto
    Quake 1 Resurrection :: CreedFeed

  2. #2
    Quake 1 Addict CreedFeed's Avatar
    Join Date
    Feb 2002
    Location
    Milwaukee, WI
    Posts
    296
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    nevermind, I just found my solution.
    -- Steve Caponetto
    Quake 1 Resurrection :: CreedFeed


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
  •