Help - Search - Members - Calendar
Full Version: echoing the php variable in a different color
HTMLHelp Forums > Programming > Server-side Scripting

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.

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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.