Page 1 of 1

Get value list from php code

PostPosted: Thu Sep 17, 2009 8:06 am
by inmisia
is possible to create dinamicaly value list of a select box from php code?
like:
Code: Select all
function opuscolo__pullValue(&$record)
{
      if ($record->strval('opuscolo'))
      {
        $r_unit = $record->display('outcome');
        return "<select><option>$r_unit</option><option>value 2</option><option>value 3</option></select>";
      }
}


Becose I need to get data from another Database (oracle) becore put in mySql database.

Thanks For All.

PostPosted: Thu Sep 17, 2009 9:39 am
by shannah
Yes. You can define valuelists programmatically.
http://xataface.com/wiki/valuelists.ini_file#toc3