TheUnknown Posted August 26, 2008 Share Posted August 26, 2008 what am i doing wrong here? $rp = "http://www.mysite.com"; { echo "<center><div class=\"error\" >nothing found try " .$rp. " <b> </b>\n</div></center>";} the link dont get echoed Thanks Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/ Share on other sites More sharing options...
DarkWater Posted August 26, 2008 Share Posted August 26, 2008 What are the { } there for? Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/#findComment-626463 Share on other sites More sharing options...
TheUnknown Posted August 26, 2008 Author Share Posted August 26, 2008 its for other code thats not listed Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/#findComment-626464 Share on other sites More sharing options...
trq Posted August 26, 2008 Share Posted August 26, 2008 What link? All you've done is store a url within a variable. Links are created using the html anchor tag. Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/#findComment-626490 Share on other sites More sharing options...
Ken2k7 Posted August 27, 2008 Share Posted August 27, 2008 Like this? { echo "<center><div class=\"error\" >nothing found try <a href='" .$rp. "'>" . $rp . "</a> <b> </b>\n</div></center>";} Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/#findComment-626654 Share on other sites More sharing options...
dezkit Posted August 27, 2008 Share Posted August 27, 2008 welcome to php. Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/#findComment-626670 Share on other sites More sharing options...
Fadion Posted August 27, 2008 Share Posted August 27, 2008 Welcome to HTML would be more appropriate Link to comment https://forums.phpfreaks.com/topic/121479-hyperlink/#findComment-626716 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.