Welcome to WebmasterWorld Guest from

Forum Moderators: not2easy

Message Too Old, No Replies

Display ['currentairline'] in RED



3:32 pm on Nov 11, 2012 (gmt 0)

How do I make currentairline display in RED?

<?php echo htmlentities($post['currentairline']) ?>



4:02 pm on Nov 11, 2012 (gmt 0)

Got it

<?php echo "<font color=\"red\">".htmlentities($post['currentairline'])."</font>" ?>


2:30 am on Nov 12, 2012 (gmt 0)

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

And when you say "font color = 'red'" you mean, of course, "span class = 'currentairline'" accompanied by appropriate line in the CSS, thereby
#1 getting rid of a wildly deprecated formulation
#2 giving yourself the option of highlighting the text in some other way after you discover that some users are interpreting the red text as a warning.


Featured Threads

Hot Threads This Week

Hot Threads This Month