topical media & game development

talk show tell print

professional-php-10-handlerTest.php / php



  <?php
  require_once ('class.Dispatcher.php');
  ?>
  
  <HTML>
     <HEAD>
        <TITLE>Secure, Event Driven Record Viewer!</TITLE>
     </HEAD>
     <BODY>
        <FORM method="GET" ACTION="<?=_SERVER['PHP_SELF']?>">
           <INPUT type="submit" name="event" value="View">
           <INPUT type="submit" name="event" value="Edit">
        </FORM>
     </BODY>
  </HTML>
  
  <?php
  function handle(){
     event = _GET['event'];
     disp = new dispatcher(event);
     disp->handle_the_event();
  }
  
  session_start();
  _SESSION['name'] = "Horatio";
  
  handle();
  ?>
  


(C) Æliens 20/2/2008

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.