Zend Certified Engineer

phpguru.org

Free PHP, Javascript and C# code

Messaging users

The perrenial problem of messaging users. Users with a capital L. Well, maybe not. But this function still makes it easier. A simple function which outputs some pretty HTML and CSS which displays a nice message to the user. Bung the CSS in a common CSS file if you want to save some bandwidth, otherwise simply call the function with two args. The first is the bold warning message, whilst the second is the " main" warning text. It looks a little like this:

! This is the warning text
And this is the main body text.

Oh and don't forget about the image. I belongs in /images

Also...

You may want to have a look at this: http://www.phpguru.org/article.php/196

Download

Link to me

If you use any of the code on this site (and if you don't I guess) or it makes your life easier, I'd appreciate a link - http://www.phpguru.org. Thanks!

Last modified: 10:11 15th February 2008