Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

php hyperlink coding

Discussion in 'General Discussion' started by bentangle, Nov 10, 2009.

  1. bentangle

    bentangle Registered

    Nov 8, 2009
    Likes Received:
    Trophy Points:
    hi i have tried the folowing code's for the website i am working on and i always get a string error on the site can someone help me

    <a href="">Hyperlink Code</a>


    Hyperlink Code

    Code In Context

    Make <a href="">Hyperlink Code</a> easily.


    Make Hyperlink Code easily.

    <a href="" target="_blank">New Browser Window</a>


    New Browser Window

    Code In Context

    How to open hyperlinks in a <a href="" target="_blank">New Browser Window</a> quickly.


    How to open hyperlinks in a New Browser Window quickly

    <?php print( '<a href="">Click Me</a>' ); ?>

    <a href="">age and time</a>

    ive tried them as they are and edited to the page i want li8nked but nothing seems to work any ideahs how to get the cpanel to hyper link in php code?
  2. Infopro

    Infopro cPanel Sr. Product Evangelist
    Staff Member

    May 20, 2003
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    This has nothing to do with cPanel, it's more about how to add a link to your web page.

    If you opened up notepad and pasted in the first few links and then save that file to your desktop calling it test.html and then open it with your browser the links will work as expected.

    One of those last 2 links in your example from that website are to be placed in a php file. So, if you took the same test.html mentioned above and edit it one more time adding the other two links, then save calling the file test.php and upload it to your server the other link will work. You cannot open the file test.php with your browser from your desktop though. It has to be on a server to parse it properly.

    Download the attachment in this post, rename it test.html. Upload file to your server, open it in your browser. Then rename it to to test.php instead and open it again to see the fourth link displayed properly.

    You'd do better to ask this sort of thing on a webpage building or HTML coding type of site.


    Attached Files:

    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice