itdmacar Posted February 26, 2010 Share Posted February 26, 2010 Hi, Can I add a link inside nl2br function ? how do i code this echo nl2br(An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>); Quote Link to comment Share on other sites More sharing options...
ialsoagree Posted February 26, 2010 Share Posted February 26, 2010 Hi, Can I add a link inside nl2br function ? how do i code this echo nl2br(An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>); nl2br's input needs to be a string, add quotations: echo nl2br('An absolute URL: <a href="http://www.w3schools.com">W3Schools</a>'); Quote Link to comment Share on other sites More sharing options...
itdmacar Posted February 26, 2010 Author Share Posted February 26, 2010 Thanks ialsoagree, I will try that . . . Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.