18 Dec
2008
18 Dec
'08
6:11 p.m.
i'am creating a select object with drupal form api, and i want ti setup a defautl value from the array of options $net = drupal_map_assoc(array('Dial-up', 'Cable/dsl', 'Lan')); $form['meet_net'] = array( '#type' => 'select', '#options' => $net, '#title' => t('Network'), '#default_value' => $net['Lan'], ); i can do this with that variant, but i need to user numeric values from the array, by example '#default_value' => $net[2], for save data in database?? how can i do that them?? -- ---------------------- Aldo Martinez Selleras Administrador del Nodo CITMATEL GND Camaguey Tel: 32-291661 E-mail: aldo@caonao.cu Linux User #364356