function Lookup($aListValues,$aValue,$aName,$aId=null){ $selected=""; if(!$aId){ $aId=$aName;} $html=""; return $html; } /** Demo de uso * $EstCivil = array('CASADO','SOLTEIRO','VIUVO','OUTROS'); if($_POST){ echo Lookup($EstCivil,$_POST['EstCivil'],"EstCivil"); } else { echo Lookup($EstCivil,"MASCULINO","EstCivil"); } */