Padgoi Posted October 16, 2008 Share Posted October 16, 2008 I have this line: $post = 'This post has been deleted by:'. $usr; How do I add an echo or something to make that text red? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/128733-solved-quick-echo-question/ Share on other sites More sharing options...
andrewgarn Posted October 16, 2008 Share Posted October 16, 2008 I have this line: $post = 'This post has been deleted by:'. $usr; How do I add an echo or something to make that text red? Thanks in advance. Try this? $post = '<span style="color:#FF0000">This post has been deleted by:'. $usr.'</span>'; Quote Link to comment https://forums.phpfreaks.com/topic/128733-solved-quick-echo-question/#findComment-667184 Share on other sites More sharing options...
.josh Posted October 16, 2008 Share Posted October 16, 2008 you would do it with html or css. Quote Link to comment https://forums.phpfreaks.com/topic/128733-solved-quick-echo-question/#findComment-667186 Share on other sites More sharing options...
Padgoi Posted October 16, 2008 Author Share Posted October 16, 2008 Thanks andrew. Crayon, your response wouldn't have helped at all if it hadn't been preceded by someone actually willing to help. Quote Link to comment https://forums.phpfreaks.com/topic/128733-solved-quick-echo-question/#findComment-667188 Share on other sites More sharing options...
.josh Posted October 16, 2008 Share Posted October 16, 2008 Would you have preferred I moved your thread to the html help section and given you a warning? I think pointing someone in the right direction is very helpful. To each his own, I guess. Quote Link to comment https://forums.phpfreaks.com/topic/128733-solved-quick-echo-question/#findComment-667194 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.