Extension:FormProc

Purpose
This extension offers the ability to process posted pages/forms through the 'action=formsubmit' action. The processing code resides in the database. The code can be 'syntax highlighted' through a tag.

Features

 * Handles 'action=formsubmit' action
 * Follows 'redirects'
 * Executes PHP code stored in a standard Mediawiki page
 * Supports code extraction when enclosed in 'PHP' tags
 * Supports the definition of a class in the processor page ( $page.'Class' )
 * If a method 'submit' is present in the said class, it will be called upon formsubmit action (see example)

Form Processing Page 'MyFormProc'
class MyFormProcClass { 	 function submit { implement your handler here } }

So in the above case, your form should POST to something like MyFormProc?action=formsubmit.

Dependencies

 * Extension:StubManager extension
 * Extension:RunPHP Class extension

Installation
To install independently from BizzWiki:
 * Download 'StubManager' extension
 * Apply the following changes to 'LocalSettings.php'

History

 * added functionality to define a class for handling form processing
 * removed dependency on ExtensionClass
 * added stubbing capability through StubManager