Login   Register  
PHP Classes
elePHPant
Icontem

File: ok.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 9 years ago
Size: 566 bytes
 

Contents

Class file image Download
<?php
//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 'oktop.inc.php' ;

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 'okbottom.inc.php' ;
?>