id of the example * * @package patForms * @subpackage Examples * @author Sebastian 'The Argh' Mordziol */ if( !isset( $_GET['example'] ) ) die( 'No example selected.' ); $exampleId = $_GET['example']; ob_start(); // needed so that the example file is in the right place chdir( '../' ); require $exampleId.'.php'; ob_end_clean(); if( !isset( $form ) ) { die( 'Elements source is not available for this example.' ); } foreach( $form->elements as $row => $el ) { echo $el->serialize()."\n\n"; } ?>