PHP Classes

File: ok.php

Recommend this page to a friend!
  Classes of Wolter Kaper  >  Screen Stack  >  ok.php  >  Download  
File: ok.php
Role: Example script
Content type: text/plain
Description: example form processor
Class: Screen Stack
Implement stacked pages navigation
Author: By
Last change:
Date: 12 years ago
Size: 566 bytes


Class file image Download
//non-output producing script, it ends in a direct to a page
//there could be many of this type of scripts, but here we have only one
include '' ;

if (
$_POST['ok']) {
//ok button was clicked, do something with the user input
$_SESSION['results'] .= $_POST['myinput'].'<br>' ; //just for testing...
else {
//cancel was clicked, do something or nothing
    //$_SESSION['results'] = '' ; //just for testing: clear the results

//common bottom of all okscripts (we have just one here)
include '' ;