a link in php

Discussion in 'PHP' started by ianlufc, Apr 21, 2008.

  1. #1
    Guys i am trying to get a link to opn in a new window

    echo "<a href=".$objects."target='_blank'>Read More About This Book</a>";

    that above is not working, see where its wrong

    thanks
     
    ianlufc, Apr 21, 2008 IP
  2. nihcer

    nihcer Member

    Messages:
    30
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #2
    add some quotes, watch for blanks

    echo "<a href=\"".$objects."\" target=\"_blank\">Read More About This Book</a>";
    PHP:
     
    nihcer, Apr 21, 2008 IP
  3. ianlufc

    ianlufc Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks mate appreciate swift reply
     
    ianlufc, Apr 21, 2008 IP