PHP Classes

How do you implement $fldOptions

Recommend this page to a friend!

      Generic Form class  >  All threads  >  How do you implement $fldOptions  >  (Un) Subscribe thread alerts  
Subject:How do you implement $fldOptions
Summary:How do you implement $fldOptions
Messages:1
Author:Chase Leightone
Date:2011-09-05 17:10:10
 

  1. How do you implement $fldOptions   Reply   Report abuse  
Picture of Chase Leightone Chase Leightone - 2011-09-05 17:10:10
Thank you for this class. If you try to use the checkbox, radio button or select fields, I think we are supposed to use $fldOptions to set the different option values for the field. How are we supposed to do that? I have tried a number of array definitions for $fldOptions in a field, and it always produces an error (or no option values). Can anyone provide a working sample using $fldOptions?

e.g.

$a->fldName = "teste";
$a->fldId = "teste";
$a->fldType = "checkbox";
$a->$fldOptions = array('Language'=>'English', 'Language'=>'Portuguese');
$a->cssStyle ="color:red;";
$a->fldValue= "foi";
$a->getField();