'None', 'USD'=>'USD', 'EUR'=>'EUR', 'GPB'=>'GBP', 'YEN'=>'YEN' ); $form=new form_class; $form->NAME="currency_form"; $form->METHOD="POST"; $form->ACTION=""; $form->debug="error_log"; $form->AddInput(array( "TYPE"=>"custom", "ID"=>"currency", "NAME"=>"currency", "LABEL"=>"Currency", "ACCESSKEY"=>"t", "CustomClass"=>"form_list_select_class", "VALUE"=>"", "OPTIONS"=>$currencies, 'Columns'=>array( array( 'Type'=>'Input' ), array( 'Type'=>'Option', 'Header'=>'Symbol' ), array( 'Type'=>'Data', 'Header'=>'Name', 'Row'=>'Name', ), array( 'Type'=>'Data', 'Header'=>'Region', 'Row'=>'Region', ), array( 'Type'=>'Data', 'Header'=>'Value', 'Row'=>'Value', ), ), 'Rows'=>array( 'USD'=>array( 'Name'=>'Dollar', 'Region'=>'United States', 'Value'=>'$1.00' ), 'EUR'=>array( 'Name'=>'Euro', 'Region'=>'Europe', 'Value'=>'$1.4986' ), 'GPB'=>array( 'Name'=>'Pound', 'Region'=>'United Kingdom', 'Value'=>'$1.6737' ), 'YEN'=>array( 'Name'=>'Yen', 'Region'=>'Japan', 'Value'=>'$0.011132' ), ) )); $form->AddInput(array( "TYPE"=>"submit", "VALUE"=>"Choose", "NAME"=>"doit" )); $form->LoadInputValues($form->WasSubmitted("doit")); $verify=array(); if($form->WasSubmitted("doit")) { if(($error_message=$form->Validate($verify))=="") $doit=1; else { $doit=0; $error_message=HtmlEntities($error_message); } } else { $error_message=""; $doit=0; } if(!$doit) { if(strlen($error_message)) { Reset($verify); $focus=Key($verify); } else $focus='currency'; $form->ConnectFormToInput($focus, 'ONLOAD', 'Focus', array()); } $onload = HtmlSpecialChars($form->PageLoad()); ?> Test for Manuel Lemos' PHP form class using the list select plug-in input

Test for Manuel Lemos' PHP form class using the list select plug-in input


GetInputValue("currency"); ?>

The chosen currency is .

StartLayoutCapture(); $title="List select plug-in test"; $body_template="form_list_select_body.html.php"; include("templates/form_frame.html.php"); $form->EndLayoutCapture(); $form->DisplayOutput(); } ?>