an array problem in oop
Posted: Tue Mar 04, 2008 12:45 pm
Hi
this is a function to create selecy field in html form:
I will use that function this way:
and I want my options to be Egold and Paypal but how should i define my options?
thanks
this is a function to create selecy field in html form:
Code: Select all
function addSelect($name, $label, $default, &$options) {
$this->_elements[$name] = array('type' => 'select', 'label' => $label, 'value' => $default,
'options' => $options);
}Code: Select all
$form->addSelect('accounttype', Your Account Type, '', &$options);thanks