/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php class Flash { public function set($message, $status) { 'status' => $status, 'message' => $message ); return true; } public function show() { echo '<div class="' . $_SESSION['flash']['status'] . '" id="flash">'; echo $_SESSION['flash']['message']; echo '</div>'; } return true; } } ?>
Comments
