How to create those message box in php, just like the one in facebook. Or any reference that you could give me that deals with designing.
This has nothing to do with PHP, but is done on client side using HTML and Javascript.
Facebox is a very popular plugin based on JQuery.
This question has links to a number of others.
It's less a PHP server-side issue, more a client-side thing. So, one thing you could look at is doing it with is jQuery Dialogs
You will have to use php's GD to create a message box. Alternatively, you can simply echo out the javascript's message box using php with a code similar to this:
if ($success) {
echo "<script>alert('information updated')</script>";
echo "<script>navigate('other.php')</script>";
exit();
} else {
//....failed to update info
}
Most of the message boxes you see on websites such as Facebook are actually implemented in HTML, CSS and JavaScript. There are a number of examples of how to implement this with jQuery:
You could always wrap the code in a PHP function, however unless you are only using the message box in one place it would probably be simpler to put the code on each page.