PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Bryan  >  Flash Message  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example
Class: Flash Message
Store message to show to user in session variables
Author: By
Last change:
Date: 11 years ago
Size: 367 bytes


Class file image Download
<?php session_start() ?>
include('class.flash.php') ?>

= new Flash();
$flash->setFlash('sample','You are welcome!');
// now check if there is a flash message
if ($flash->hasFlash('sample'))
$flash->getFlash('sample'); // output the flash message
"There is no flash message, sorry!";

For more information send a message to info at phpclasses dot org.