bentangle

Registered
Nov 8, 2009
1
0
51
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



Code
<a href="http://www.hyperlinkcode.com">Hyperlink Code</a>

Output

Hyperlink Code

Code In Context

Make <a href="http://www.hyperlinkcode.com">Hyperlink Code</a> easily.

Output

Make Hyperlink Code easily.





Code
<a href="http://www.hyperlinkcode.com/new-window.php" target="_blank">New Browser Window</a>

Output

New Browser Window

Code In Context

How to open hyperlinks in a <a href="http://www.hyperlinkcode.com/new-window.php" target="_blank">New Browser Window</a> quickly.

Output

How to open hyperlinks in a New Browser Window quickly









<?php print( '<a href="http://mylink.com/path/">Click Me</a>' ); ?>





<a href="http://www.someting.com?date=9/15/05&age=21">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?
 

Infopro

Well-Known Member
May 20, 2003
17,075
524
613
Pennsylvania
cPanel Access Level
Root Administrator
Twitter
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 hyperlinkcode.com 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.

HTH
 

Attachments