Adding extra text after each link

Discussion in 'PHP' started by redhits, Oct 9, 2007.

  1. #1
    How i can add extra text after each URL ? like i want to add an code like [xxx] just something simple after each url from an $text variable...
     
    redhits, Oct 9, 2007 IP
  2. Ned

    Ned Active Member

    Messages:
    402
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    78
    #2
    <a href="/mypage.php?code=<? echo $text;?>">Click here</a>

    Or have I understood your question incorrectly?
     
    Ned, Oct 9, 2007 IP
    redhits likes this.
  3. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #3
    I want to use preg_match to do automatically for a whole page- text :)
     
    redhits, Oct 9, 2007 IP
  4. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #4
    any help please :(
     
    redhits, Oct 9, 2007 IP
  5. redhits

    redhits Notable Member

    Messages:
    3,023
    Likes Received:
    277
    Best Answers:
    0
    Trophy Points:
    255
    #5
    common guys
     
    redhits, Oct 9, 2007 IP