This topic is locked

formating $message possible

7/23/2010 10:03:11 AM
PHPRunner General questions
C
CKi author

Sorry for this easy question but I have no idea to this problem and I'm a newbi with PHP.
Normaly the $message text will be given out centered with green background.
If I detect an error on the event before store I set $message with an own text. This will be given out in black, left side and only one line.
I think that the user doesn't see it and think all is good and click back to list.So I will change in this case the formating of $message to centered and red background.
It it possible or have anyone an idea for a solution ?
Best regards

Christian

501369 7/26/2010

Hi,
e.g. you can use the following code:
$message = "<span style='color:red;text-align:center;'>YOUR TEXT</span>";
Regards
Daniel