echoing the php variable in a different color |
echoing the php variable in a different color |
tudsy |
Nov 16 2017, 07:58 AM
Post
#1
|
Advanced Member Group: Members Posts: 246 Joined: 30-September 14 Member No.: 21,611 |
Hi
Just one question. How do I echo a php variable's text from black to red? i.e. if $fname =$_GET['FirstName'];, will echo black text. How do I echo this piece of code's text to red from black? Any help will be appreciated. Thanks. |
CharlesEF |
Nov 16 2017, 01:38 PM
Post
#2
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
You don't echo a color in PHP. It shows up black because the container text color is black. So, if the container is a <p> or <span> or whatever you need to make the text color whatever you want for the container.
|
Lo-Fi Version | Time is now: 26th April 2024 - 02:16 PM |