Jump to content

PHP BASIC HELP


bobk

Recommended Posts

just wondering how some1 would edit php code for text's ?

 

example :

 

print "Your email has been removed from our mailing list. ";

 

 

how would i make it print it in a diffrent color.

 

as if i add some html in between the " " it doesnt work  ?

 

print "<font color="#ffffff">Your email<br /> has been removed from our mailing list. </font>";

 

 

bascailly its coming out in black font, but i want it in white.

and no html/css i can think of will edit it . as its in a php file.

 

 

thanks.

Link to comment
https://forums.phpfreaks.com/topic/153088-php-basic-help/
Share on other sites

The reason it doesn't work is apparent when you use syntax highlighting:

 

<?php
print "<font color="#ffffff">Your email<br /> has been removed from our mailing list. </font>";

 

You have to escape those inner quotes with a backslash or you could just use single quotes on the outside since there are no variables in the string.

 

<?php
print '<font color="#ffffff">Your email<br /> has been removed from our mailing list. </font>';

Link to comment
https://forums.phpfreaks.com/topic/153088-php-basic-help/#findComment-804109
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.