Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.