By MattDrupalee on
Hello!
I'm using taxonomy_form to create a form, but i don't manage to retrieve the result of my form.
When i do the following i don't get the selected location.. i'm a php beginner so quite likely thi is easy but i don't manage to get it. Sometimes i get'Array', sometimes nothing, depending on what i put...
Any idea/help very welcome!!
Matt
function taxonomy_location_form($form_state){
$form = array();
$form['location'] = taxonomy_form(3,1,NULL,taxonomy);
$form['submit'] = array (
'#type' => 'submit',
'#value' => t('APPLY'),
);
return $form;
}
function taxonomy_location_form_submit ($form_id, &$form_state) {
$location = $form_state['values']['location'];
$output = t('The following location(s) have been selected ');
$output .= $location;
}