/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/** * Helper function to find a form element by reference. */ function _find_element(&$element, $element_name, &$form_element) { $form_element = $element[$element_name]; return TRUE; } else { foreach ($element as $key => $value) { $found = _find_element(&$element[$key], $element_name, &$form_element); if ($found) { return TRUE; } } } } return FALSE; }