anjap Posted May 28, 2008 Share Posted May 28, 2008 I'm making a forum to the intranet at work (using bbPress - php vers 5.2.3 - mysql vers 5.0.42 ) I have a link coded like this <?php echo ('<a href="http://www.google.dk"> » Google </a>'); ?> and it acts really strange. On some pc's it work's fine but on others the text Google is showing but it cann't be activated as a link. The color off the text indicate it's a link but the mouse stays an "arrow" instead of a "hand", and so I cann't visit the homepage. I have no idea what can course this since it's working on my pc and someothers but as I said not on all pc's. ??? So I hope some of you can lead me in the rigth direction... Kind regards Anja Link to comment https://forums.phpfreaks.com/topic/107617-href-doesnt-link/ Share on other sites More sharing options...
trq Posted May 28, 2008 Share Posted May 28, 2008 The should be no space after < and a <?php echo '<a href="http://www.google.dk"> Google </a>'; ?> A simple html problem. Link to comment https://forums.phpfreaks.com/topic/107617-href-doesnt-link/#findComment-551572 Share on other sites More sharing options...
anjap Posted May 28, 2008 Author Share Posted May 28, 2008 @thorpe I'm new in this forum and had some difficulties showing the code so I tried to put in a space to make it show - until I found the # icon I just tried to copy your code into my php page and it still works on some pc's and does on others Link to comment https://forums.phpfreaks.com/topic/107617-href-doesnt-link/#findComment-551580 Share on other sites More sharing options...
trq Posted May 28, 2008 Share Posted May 28, 2008 There is nothing syntactically wrong with the code I posted. I would suggest using the w3c html validator to validate the html in your page and see if the problem persists. Link to comment https://forums.phpfreaks.com/topic/107617-href-doesnt-link/#findComment-551587 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.