Php Hyperlink Help

Discussion in 'PHP' started by silas2, Jun 11, 2007.

  1. #1
    I am new to PHP and i have a php programe . How do i create a hyperlink for PHP . if people click on the link it should open in a new Page .
     
    silas2, Jun 11, 2007 IP
  2. livingearth

    livingearth Well-Known Member

    Messages:
    1,469
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    140
    #2
    <?php

    echo"< href='http://www.yourlink.com'target=new>Your Link</a>";


    ?>
     
    livingearth, Jun 11, 2007 IP
  3. ProgrammersTalk

    ProgrammersTalk Peon

    Messages:
    684
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ProgrammersTalk, Jun 11, 2007 IP
  4. *louie*

    *louie* Peon

    Messages:
    48
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    if you want to write the link using php instead standard html you need to use the echo statement:

    
    
    echo "<a href='link to website or page goes here' title='something to show onmouseover' target='_blank(new_window)'>Your text here</a>";
    
    
    PHP:
     
    *louie*, Jun 11, 2007 IP