ho un array in php del tiopo:
$comuniIt= array("AG" => "Agrigento", "AL" => "Alessandria", "AN" => "Ancona", "AQ" => "Aquila",
"AR" => "Arezzo", "AP" => "Ascoli Piceno", "AT" => "Asti", "AV" => "Avellino",
"BA" => "Bari", "BT" => "Barletta Andria Trani", "BL" => "Belluno",

ho creato questa funzione php che mi riempie una select:
Codice PHP:
function getSelectComuni($reqcomuni,$arr,$selValue){

    
$res="PR";
    if(!empty( 
$selValue))
        
$res $selValue;

    
$strSelect "<select name=".$reqcomuni.">";
    
    while (list(
$key$val) = each($arr)) {
        
        
$Sel="";
        if(
$res == $key)
            
$Sel="selected='selected'";
        
$strSelect.="<option ".$Sel." value=".$key.">".$val."</option>";
    }
    return 
$strSelect."</select>";

la richiamo con:echo(getSelectComuni("selcomuni",$comuniIt,$Co muniValue));
e in $comunivalue ci metto il post di selcomuni:
$comunivalue=$_POST["selcomuni"]

il problema è che vorrei far permanere il valore settato corrente anche dopo un refresh o un submit.
E' possibile?
in ff funziona,in ie no
Grazie.